Skip to content

Commit

Permalink
fix: Roll back sessions v2 (#23990)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c authored and zlwaterfield committed Jul 25, 2024
1 parent 110b1d4 commit c6de951
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions posthog/hogql/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
PersonsOnEventsMode,
SessionTableVersion,
)
from posthog.utils import get_instance_region
from posthog.warehouse.models.external_data_job import ExternalDataJob
from posthog.warehouse.models.external_data_schema import ExternalDataSchema
from posthog.warehouse.models.external_data_source import ExternalDataSource
Expand Down Expand Up @@ -249,9 +248,7 @@ def create_hogql_database(
join_function=join_with_persons_table,
)

if modifiers.sessionTableVersion == SessionTableVersion.V2 or (
get_instance_region() == "EU" and modifiers.sessionTableVersion == SessionTableVersion.AUTO
):
if modifiers.sessionTableVersion == SessionTableVersion.V2:
raw_sessions = RawSessionsTableV2()
database.raw_sessions = raw_sessions
sessions = SessionsTableV2()
Expand Down

0 comments on commit c6de951

Please sign in to comment.