Skip to content

Commit

Permalink
fix: Update PersonDistinctIdOverridesTable to be consistent with up…
Browse files Browse the repository at this point in the history
…dated `LazyTable` interface
  • Loading branch information
tkaemming committed Mar 22, 2024
1 parent 060ebc2 commit a7fe876
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
)
from posthog.hogql.database.schema.persons import join_with_persons_table
from posthog.hogql.errors import HogQLException
from posthog.schema import HogQLQueryModifiers

PERSON_DISTINCT_ID_OVERRIDES_FIELDS = {
"team_id": IntegerDatabaseField(name="team_id"),
Expand Down Expand Up @@ -82,7 +81,7 @@ def to_printed_hogql(self):
class PersonDistinctIdOverridesTable(LazyTable):
fields: Dict[str, FieldOrTable] = PERSON_DISTINCT_ID_OVERRIDES_FIELDS

def lazy_select(self, requested_fields: Dict[str, List[str | int]], modifiers: HogQLQueryModifiers):
def lazy_select(self, requested_fields: Dict[str, List[str | int]], context: HogQLContext, node: SelectQuery):
return select_from_person_distinct_id_overrides_table(requested_fields)

def to_printed_clickhouse(self, context):
Expand Down

0 comments on commit a7fe876

Please sign in to comment.