-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new table migrations and change table names * include necessaray config for new tables in tests * fix tests and table * fix table name param * add populate clause * added table for key value person props * adjust person filtering to use new table * . * add ordering on updated_at * add back all the condition handling on persons filtering endpoint * fix typgin * remove print * re-order sort key for persons_up_to_date Co-authored-by: James Greenhill <fuziontech@gmail.com>
- Loading branch information
1 parent
8132dea
commit 51105ac
Showing
10 changed files
with
274 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from infi.clickhouse_orm import migrations # type: ignore | ||
|
||
from ee.clickhouse.sql.person import ( | ||
MAT_PERSONS_PROP_TABLE_SQL, | ||
MAT_PERSONS_WITH_PROPS_TABLE_SQL, | ||
PERSONS_PROP_UP_TO_DATE_VIEW, | ||
PERSONS_UP_TO_DATE_MATERIALIZED_VIEW, | ||
PERSONS_UP_TO_DATE_VIEW, | ||
PERSONS_WITH_PROPS_TABLE_SQL, | ||
) | ||
|
||
operations = [ | ||
migrations.RunSQL(PERSONS_UP_TO_DATE_MATERIALIZED_VIEW), | ||
migrations.RunSQL(PERSONS_UP_TO_DATE_VIEW), | ||
migrations.RunSQL(PERSONS_WITH_PROPS_TABLE_SQL), | ||
migrations.RunSQL(MAT_PERSONS_WITH_PROPS_TABLE_SQL), | ||
migrations.RunSQL(MAT_PERSONS_PROP_TABLE_SQL), | ||
migrations.RunSQL(PERSONS_PROP_UP_TO_DATE_VIEW), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.