Skip to content

Commit

Permalink
Drop test we don't actually want to support
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Feb 4, 2025
1 parent c9ffd21 commit 2286034
Showing 1 changed file with 0 additions and 59 deletions.
59 changes: 0 additions & 59 deletions posthog/hogql/database/test/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,65 +766,6 @@ def test_database_warehouse_resolve_field_through_linear_joins_basic_join(self):

print_ast(parse_select("SELECT customer.events.distinct_id FROM subscriptions"), context, dialect="clickhouse")

def test_database_warehouse_resolve_field_through_linear_joins_experiments_optimized_events_join(self):
credentials = DataWarehouseCredential.objects.create(
access_key="test_key", access_secret="test_secret", team=self.team
)

DataWarehouseTable.objects.create(
team=self.team,
name="subscriptions",
columns={
"id": "String",
"created_at": "DateTime64(3, 'UTC')",
"customer_id": "String",
},
credential=credentials,
url_pattern="s3://test/*",
format=DataWarehouseTable.TableFormat.Parquet,
)

DataWarehouseTable.objects.create(
team=self.team,
name="customers",
columns={
"id": "String",
"email": "String",
},
credential=credentials,
url_pattern="s3://test/*",
format=DataWarehouseTable.TableFormat.Parquet,
)

DataWarehouseJoin.objects.create(
team=self.team,
source_table_name="subscriptions",
source_table_key="customer_id",
joining_table_name="customers",
joining_table_key="id",
field_name="customer",
)

DataWarehouseJoin.objects.create(
team=self.team,
source_table_name="customers",
source_table_key="email",
joining_table_name="events",
joining_table_key="person.properties.email",
field_name="events",
configuration={"experiments_optimized": True, "experiments_timestamp_key": "subscriptions.created_at"},
)

db = create_hogql_database(team_id=self.team.pk)

context = HogQLContext(
team_id=self.team.pk,
enable_select_queries=True,
database=db,
)

print_ast(parse_select("SELECT customer.events.distinct_id FROM subscriptions"), context, dialect="clickhouse")

def test_database_warehouse_resolve_field_through_nested_joins_basic_join(self):
credentials = DataWarehouseCredential.objects.create(
access_key="test_key", access_secret="test_secret", team=self.team
Expand Down

0 comments on commit 2286034

Please sign in to comment.