File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
data-providers/src/main/java/datart/data/provider/calcite Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3939 <appender-ref ref =" root" />
4040 </root >
4141
42- <logger name =" datart.data.provider.jdbc.adapters" level =" ${SQL_LEVEL}" >
42+ <logger name =" datart.data.provider.jdbc.adapters" level =" ${SQL_LEVEL}" addtivity = " false " >
4343 <appender-ref ref =" sql" />
4444 </logger >
45- <logger name =" datart.data.provider.local.LocalDB" level =" ${SQL_LEVEL}" >
45+ <logger name =" datart.data.provider.local.LocalDB" level =" ${SQL_LEVEL}" addtivity = " false " >
4646 <appender-ref ref =" sql" />
4747 </logger >
4848
Original file line number Diff line number Diff line change 11package datart .data .provider .calcite ;
22
33import datart .data .provider .calcite .parser .impl .SqlParserImpl ;
4+ import org .apache .calcite .avatica .util .Casing ;
45import org .apache .calcite .avatica .util .Quoting ;
56import org .apache .calcite .sql .SqlDialect ;
67import org .apache .calcite .sql .SqlNode ;
@@ -19,7 +20,10 @@ public static SqlNode parseSnippet(String snippet) throws SqlParseException {
1920 String sql = String .format (SELECT_SQL , snippet );
2021 SqlParser .Config config = SqlParser .config ()
2122 .withParserFactory (SqlParserImpl .FACTORY )
23+ .withQuotedCasing (Casing .UNCHANGED )
24+ .withUnquotedCasing (Casing .UNCHANGED )
2225 .withConformance (SqlConformanceEnum .LENIENT )
26+ .withCaseSensitive (true )
2327 .withQuoting (Quoting .BRACKET );
2428 return SqlParser .create (sql , config ).parseQuery ();
2529
You can’t perform that action at this time.
0 commit comments