-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrongly string format in UnaryExpr (#123)
- Loading branch information
Showing
5 changed files
with
653 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CREATE MATERIALIZED VIEW infra_bm.view_name | ||
ON CLUSTER 'default_cluster' TO infra_bm.table_name | ||
( | ||
`f1` DateTime64(3), | ||
`f2` String, | ||
`f3` String, | ||
`f4` String, | ||
`f5` String, | ||
`f6` Int64 | ||
) AS | ||
SELECT f1, | ||
f2, | ||
visitParamExtractString(properties, 'f3') AS f3, | ||
visitParamExtractString(properties, 'f4') AS f4, | ||
visitParamExtractString(properties, 'f5') AS f5, | ||
visitParamExtractInt(properties, 'f6') AS f6 | ||
FROM infra_bm.table_name1 | ||
WHERE infra_bm.table_name1.event = 'test-event' AND | ||
NOT isZeroOrNull(f2) AND f6-2 > 0 |
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,23 @@ | ||
-- Origin SQL: | ||
CREATE MATERIALIZED VIEW infra_bm.view_name | ||
ON CLUSTER 'default_cluster' TO infra_bm.table_name | ||
( | ||
`f1` DateTime64(3), | ||
`f2` String, | ||
`f3` String, | ||
`f4` String, | ||
`f5` String, | ||
`f6` Int64 | ||
) AS | ||
SELECT f1, | ||
f2, | ||
visitParamExtractString(properties, 'f3') AS f3, | ||
visitParamExtractString(properties, 'f4') AS f4, | ||
visitParamExtractString(properties, 'f5') AS f5, | ||
visitParamExtractInt(properties, 'f6') AS f6 | ||
FROM infra_bm.table_name1 | ||
WHERE infra_bm.table_name1.event = 'test-event' AND | ||
NOT isZeroOrNull(f2) AND f6-2 > 0 | ||
|
||
-- Format SQL: | ||
CREATE MATERIALIZED VIEW infra_bm.view_name ON CLUSTER 'default_cluster' TO infra_bm.table_name (`f1` DateTime64(3), `f2` String, `f3` String, `f4` String, `f5` String, `f6` Int64) AS SELECT f1, f2, visitParamExtractString(properties, 'f3') AS f3, visitParamExtractString(properties, 'f4') AS f4, visitParamExtractString(properties, 'f5') AS f5, visitParamExtractInt(properties, 'f6') AS f6 FROM infra_bm.table_name1 WHERE infra_bm.table_name1.event = 'test-event' AND NOT isZeroOrNull(f2) AND f6 - 2 > 0; |
Oops, something went wrong.