agavra commented on code in PR #9912:
URL: https://github.com/apache/pinot/pull/9912#discussion_r1043932573
##########
pinot-common/src/main/java/org/apache/pinot/sql/parsers/CalciteSqlParser.java:
##########
@@ -171,7 +172,7 @@ static SqlNodeAndOptions extractSqlNodeAndOptions(String
sql, SqlNodeList sqlNod
if (sqlType == null) {
throw new SqlCompilationException("SqlNode with executable statement not
found!");
}
- return new SqlNodeAndOptions(statementNode, sqlType, options);
+ return new SqlNodeAndOptions(statementNode, sqlType,
QueryOptionsUtils.resolveCaseInsensitiveOptions(options));
Review Comment:
confirmed with the following:
```
select * from dates limit 10; #no multistage default
select * from dates limit 10 OPTION(usemultistageengine=true) #use options
SET usemultistageengine=true; select * from dates limit 10;
```
and also via curl for json:
```
curl 'http://localhost:9000/sql' --data-raw '{"sql":"select * from dates
limit 10","trace":false,"queryOptions":"usemultistageengine=true"}'
```
--
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]