s5dsn-eqee commented on code in PR #2694:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2694#discussion_r4515334357
##########
src/dialect/clickhouse.rs:
##########
@@ -92,6 +97,29 @@ impl Dialect for ClickHouseDialect {
true
}
+ fn supports_numeric_prefix(&self) -> bool {
+ true
+ }
+
+ /// Undocumented; the lexer reads digits followed by word characters as
one bare word
+ /// unless the run is a number, see "Try to parse it to a identifier" in
`Lexer.cpp`.
+ fn is_digit_leading_identifier(
+ &self,
+ chars: &Peekable<Chars<'_>>,
+ prev_token: Option<&Token>,
+ ) -> bool {
+ let run: String = chars
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]