danny0405 commented on a change in pull request #1354: [CALCITE-482] Implement
sql and planner hints
URL: https://github.com/apache/calcite/pull/1354#discussion_r310875449
##########
File path: core/src/test/java/org/apache/calcite/sql/parser/SqlParserTest.java
##########
@@ -8829,6 +8829,120 @@ public void subTestIntervalSecondFailsValidation() {
sql(sql2).ok(expected);
}
+ @Test public void testQueryHint() {
+ final String sql = "select "
+ + "/*+ properties(k1='v1', k2='v2'), no_hash_join, Index(idx1, idx2)
*/ "
+ + "empno, ename, deptno from emps";
+ final String expected = "SELECT\n"
Review comment:
It is a fake hint now, i just add it to have a test. For this demo hint, it
means a hint with name `properties` and options `k1=v1, k2=v2`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services