Skip to content

Conversation

@den-crane
Copy link
Collaborator

fixes #528

added support for queries with fromUnixTimestamp64Milli : /*qq*/ SELECT fromUnixTimestamp64Milli(time)from table

@zhicwu
Copy link
Contributor

zhicwu commented Jan 3, 2021

Thanks @den-crane for fixing the issue. I noticed quite some bugs related to SQL parsing, so I'd suggest to use antlr4 instead. Meanwhile, I like the idea of creating a short-term workaround. Can we avoid using regular expression and try this approach instead for better performance?

@zhicwu
Copy link
Contributor

zhicwu commented Feb 7, 2021

I added an experimental parser in #563 and hopefully it can fix this kind of issue. I'll merge your tests and do more testing in the next following days.

@zhicwu
Copy link
Contributor

zhicwu commented Feb 8, 2021

Test cases are merged into ClickHouseSqlParserTest in #563 with minor changes to ensure it's a valid SQL.

@zhicwu zhicwu closed this Feb 8, 2021
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