From b16e3518c8c7dbad61badfdce1b7037992a755c8 Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Tue, 21 Nov 2023 23:14:47 +0100 Subject: [PATCH] fixes --- .../test/__snapshots__/test_resolver.ambr | 726 +++++++++++++++++- posthog/hogql/test/utils.py | 7 + 2 files changed, 707 insertions(+), 26 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_resolver.ambr b/posthog/hogql/test/__snapshots__/test_resolver.ambr index bde7c1b94e77f..78223c03c2b66 100644 --- a/posthog/hogql/test/__snapshots__/test_resolver.ambr +++ b/posthog/hogql/test/__snapshots__/test_resolver.ambr @@ -15,7 +15,41 @@ $group_0: { name: "$group_0" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } }, $group_1: { @@ -323,7 +357,41 @@ $group_0: { name: "$group_0" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } }, $group_1: { @@ -387,7 +455,41 @@ $group_0: { name: "$group_0" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } }, $group_1: { @@ -958,7 +1060,41 @@ type: { name: "uuid" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } }, @@ -1119,7 +1255,41 @@ table_type: { alias: "e" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } } @@ -1282,7 +1452,41 @@ type: { name: "timestamp" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } } @@ -1498,7 +1702,41 @@ type: { name: "event" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } }, @@ -1572,7 +1810,41 @@ table_type: { alias: "e" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } } @@ -1650,7 +1922,41 @@ table_type: { alias: "e" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } } @@ -1760,7 +2066,41 @@ type: { name: "event" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } }, @@ -1871,7 +2211,41 @@ type: { name: "event" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } }, @@ -1885,10 +2259,34 @@ name: "id" table_type: { field: "person" - lazy_join: join_function= join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}) from_field='person_id' + lazy_join: { + from_field: "person_id", + join_function: , + join_table: { + fields: { + created_at: {}, + id: {}, + is_identified: {}, + pdi: {}, + properties: {}, + team_id: {} + } + } + } table_type: { field: "pdi" - lazy_join: join_function= join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}) from_field='distinct_id' + lazy_join: { + from_field: "distinct_id", + join_function: , + join_table: { + fields: { + distinct_id: {}, + person: {}, + person_id: {}, + team_id: {} + } + } + } table_type: } } @@ -1932,7 +2330,41 @@ table_type: { alias: "e" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } } @@ -1948,10 +2380,34 @@ name: "id" table_type: { field: "person" - lazy_join: join_function= join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}) from_field='person_id' + lazy_join: { + from_field: "person_id", + join_function: , + join_table: { + fields: { + created_at: {}, + id: {}, + is_identified: {}, + pdi: {}, + properties: {}, + team_id: {} + } + } + } table_type: { field: "pdi" - lazy_join: join_function= join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}) from_field='distinct_id' + lazy_join: { + from_field: "distinct_id", + join_function: , + join_table: { + fields: { + distinct_id: {}, + person: {}, + person_id: {}, + team_id: {} + } + } + } table_type: } } @@ -1994,7 +2450,41 @@ type: { name: "event" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } }, @@ -2007,7 +2497,18 @@ name: "person_id" table_type: { field: "pdi" - lazy_join: join_function= join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}) from_field='distinct_id' + lazy_join: { + from_field: "distinct_id", + join_function: , + join_table: { + fields: { + distinct_id: {}, + person: {}, + person_id: {}, + team_id: {} + } + } + } table_type: } } @@ -2050,7 +2551,41 @@ table_type: { alias: "e" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } } @@ -2065,7 +2600,18 @@ name: "person_id" table_type: { field: "pdi" - lazy_join: join_function= join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}) from_field='distinct_id' + lazy_join: { + from_field: "distinct_id", + join_function: , + join_table: { + fields: { + distinct_id: {}, + person: {}, + person_id: {}, + team_id: {} + } + } + } table_type: } } @@ -2107,7 +2653,14 @@ type: { name: "distinct_id" table_type: { - table: fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')} + table: { + fields: { + distinct_id: {}, + person: {}, + person_id: {}, + team_id: {} + } + } } } }, @@ -2120,7 +2673,20 @@ name: "id" table_type: { field: "person" - lazy_join: join_function= join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}) from_field='person_id' + lazy_join: { + from_field: "person_id", + join_function: , + join_table: { + fields: { + created_at: {}, + id: {}, + is_identified: {}, + pdi: {}, + properties: {}, + team_id: {} + } + } + } table_type: } } @@ -2163,7 +2729,41 @@ type: { name: "event" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } }, @@ -2208,7 +2808,41 @@ type: { name: "event" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } }, @@ -2265,7 +2899,41 @@ type: { name: "event" table_type: { - table: fields={'uuid': StringDatabaseField(name='uuid', array=None, nullable=None), 'event': StringDatabaseField(name='event', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'timestamp': DateTimeDatabaseField(name='timestamp', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'elements_chain': StringDatabaseField(name='elements_chain', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), '$session_id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonDistinctIdsTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None), 'person': LazyJoin(join_function=, join_table=PersonsTable(fields={'id': StringDatabaseField(name='id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='properties', array=None, nullable=None), 'is_identified': BooleanDatabaseField(name='is_identified', array=None, nullable=None), 'pdi': LazyJoin(join_function=, join_table=PersonsPDITable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'distinct_id': StringDatabaseField(name='distinct_id', array=None, nullable=None), 'person_id': StringDatabaseField(name='person_id', array=None, nullable=None)}), from_field='id')}), from_field='person_id')}), from_field='distinct_id'), 'override': LazyJoin(join_function=, join_table=PersonOverridesTable(fields={'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'old_person_id': StringDatabaseField(name='old_person_id', array=None, nullable=None), 'override_person_id': StringDatabaseField(name='override_person_id', array=None, nullable=None), 'oldest_event': DateTimeDatabaseField(name='oldest_event', array=None, nullable=None), 'merged_at': DateTimeDatabaseField(name='merged_at', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None)}), from_field='person_id'), 'override_person_id': FieldTraverser(chain=['override', 'override_person_id']), 'poe': EventsPersonSubTable(fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)}), 'goe_0': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_0', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group0_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group0_properties', array=None, nullable=None)}), 'goe_1': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_1', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group1_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group1_properties', array=None, nullable=None)}), 'goe_2': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_2', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group2_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group2_properties', array=None, nullable=None)}), 'goe_3': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_3', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group3_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group3_properties', array=None, nullable=None)}), 'goe_4': EventsGroupSubTable(fields={'key': StringDatabaseField(name='$group_4', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='group4_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group4_properties', array=None, nullable=None)}), 'person': FieldTraverser(chain=['pdi', 'person']), 'person_id': FieldTraverser(chain=['pdi', 'person_id']), '$group_0': StringDatabaseField(name='$group_0', array=None, nullable=None), 'group_0': LazyJoin(join_function=.join_with_group_table at 0x10d934430>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_0'), '$group_1': StringDatabaseField(name='$group_1', array=None, nullable=None), 'group_1': LazyJoin(join_function=.join_with_group_table at 0x10d934af0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_1'), '$group_2': StringDatabaseField(name='$group_2', array=None, nullable=None), 'group_2': LazyJoin(join_function=.join_with_group_table at 0x10d934820>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_2'), '$group_3': StringDatabaseField(name='$group_3', array=None, nullable=None), 'group_3': LazyJoin(join_function=.join_with_group_table at 0x10d934ca0>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_3'), '$group_4': StringDatabaseField(name='$group_4', array=None, nullable=None), 'group_4': LazyJoin(join_function=.join_with_group_table at 0x10d934b80>, join_table=GroupsTable(fields={'index': IntegerDatabaseField(name='group_type_index', array=None, nullable=None), 'team_id': IntegerDatabaseField(name='team_id', array=None, nullable=None), 'key': StringDatabaseField(name='group_key', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='created_at', array=None, nullable=None), 'updated_at': DateTimeDatabaseField(name='_timestamp', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='group_properties', array=None, nullable=None)}), from_field='$group_4'), 'session': LazyJoin(join_function=, join_table=EventsSessionSubTable(fields={'id': StringDatabaseField(name='$session_id', array=None, nullable=None), 'duration': IntegerDatabaseField(name='session_duration', array=None, nullable=None)}), from_field='$session_id')} + table: { + fields: { + $group_0: {}, + $group_1: {}, + $group_2: {}, + $group_3: {}, + $group_4: {}, + $session_id: {}, + created_at: {}, + distinct_id: {}, + elements_chain: {}, + event: {}, + goe_0: {}, + goe_1: {}, + goe_2: {}, + goe_3: {}, + goe_4: {}, + group_0: {}, + group_1: {}, + group_2: {}, + group_3: {}, + group_4: {}, + override: {}, + override_person_id: {}, + pdi: {}, + person: {}, + person_id: {}, + poe: {}, + properties: {}, + session: {}, + team_id: {}, + timestamp: {}, + uuid: {} + } + } } } }, @@ -2279,7 +2947,13 @@ table_type: { field: "poe" table_type: - virtual_table: fields={'id': StringDatabaseField(name='person_id', array=None, nullable=None), 'created_at': DateTimeDatabaseField(name='person_created_at', array=None, nullable=None), 'properties': StringJSONDatabaseField(name='person_properties', array=None, nullable=None)} + virtual_table: { + fields: { + created_at: {}, + id: {}, + properties: {} + } + } } } } diff --git a/posthog/hogql/test/utils.py b/posthog/hogql/test/utils.py index c63f17e3cbc5c..7e46c620c997a 100644 --- a/posthog/hogql/test/utils.py +++ b/posthog/hogql/test/utils.py @@ -1,5 +1,6 @@ import dataclasses import json +from pydantic import BaseModel def pretty_print_in_tests(query: str, team_id: int) -> str: @@ -22,6 +23,9 @@ def pretty_dataclasses(obj, seen=None, indent=0): indent_space = " " * indent next_indent = " " * (indent + 2) + if isinstance(obj, BaseModel): + obj = obj.model_dump() + if dataclasses.is_dataclass(obj): obj_id = id(obj) if obj_id in seen: @@ -54,5 +58,8 @@ def pretty_dataclasses(obj, seen=None, indent=0): elif isinstance(obj, str): return json.dumps(obj) + elif callable(obj): + return "" + else: return str(obj)