[ 
https://issues.apache.org/jira/browse/CALCITE-5205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jiajun Xie updated CALCITE-5205:
--------------------------------
    Description: 
 Spark support hint that options contain string and 
number:https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-hints.html
{code:java}
SELECT /*+ REPARTITION(3, c) */ * FROM t {code}
But calcite can't parse it:
{code:java}
Error while parsing SQL: select /*+ repartition(3, empno) */ empno, ename, 
deptno from emps
java.lang.RuntimeException: Error while parsing SQL: select /*+ repartition(3, 
empno) */ empno, ename, deptno from emps {code}
 

  was:
 Spark support hint that options contain string and number:
{code:java}
SELECT /*+ REPARTITION(3, c) */ * FROM t {code}
But calcite can't parse it:
{code:java}
Error while parsing SQL: select /*+ repartition(3, empno) */ empno, ename, 
deptno from emps
java.lang.RuntimeException: Error while parsing SQL: select /*+ repartition(3, 
empno) */ empno, ename, deptno from emps {code}
 


> Supports hint option as string and numeric literal
> --------------------------------------------------
>
>                 Key: CALCITE-5205
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5205
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Jiajun Xie
>            Assignee: Jiajun Xie
>            Priority: Minor
>
>  Spark support hint that options contain string and 
> number:https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-hints.html
> {code:java}
> SELECT /*+ REPARTITION(3, c) */ * FROM t {code}
> But calcite can't parse it:
> {code:java}
> Error while parsing SQL: select /*+ repartition(3, empno) */ empno, ename, 
> deptno from emps
> java.lang.RuntimeException: Error while parsing SQL: select /*+ 
> repartition(3, empno) */ empno, ename, deptno from emps {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to