Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix can't parse if column name contains the database field #33

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

git-hulk
Copy link
Member

The sample SQL:

CREATE MATERIALIZED VIEW IF NOT EXISTS db.table
            ON CLUSTER 'default_cluster' TO db.table_mv
AS
SELECT
    event_ts,
    org_id,
    visitParamExtractString(properties, 'x') AS x,
    visitParamExtractString(properties, 'y') AS y,
    visitParamExtractString(properties, 'z') AS z,
    visitParamExtractString(properties, 'a') AS a,
    visitParamExtractString(properties, 'b') AS b,
    visitParamExtractString(properties, 'c') AS c,
    visitParamExtractString(properties, 'd') AS d,
    visitParamExtractInt(properties, 'e') AS e,
    visitParamExtractInt(properties, 'f') AS f
FROM db.table
WHERE db.table.event = 'hello';

@git-hulk git-hulk requested a review from Lance726 January 12, 2024 04:10
@git-hulk git-hulk merged commit 0d0aad2 into AfterShip:master Jan 12, 2024
1 check passed
@git-hulk git-hulk deleted the fix-database-column-name branch November 29, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants