[ 
https://issues.apache.org/jira/browse/SPARK-20854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034115#comment-16034115
 ] 

Felix Cheung commented on SPARK-20854:
--------------------------------------

seems like would be good to add support for the same in python/R as well

> extend hint syntax to support any expression, not just identifiers or strings
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-20854
>                 URL: https://issues.apache.org/jira/browse/SPARK-20854
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Bogdan Raducanu
>            Assignee: Bogdan Raducanu
>            Priority: Blocker
>             Fix For: 2.2.0
>
>
> Currently the SQL hint syntax supports as parameters only identifiers while 
> the Dataset hint syntax supports only strings.
> They should support any expression as parameters, for example numbers. This 
> is useful for implementing other hints in the future.
> Examples:
> {code}
> df.hint("hint1", Seq(1, 2, 3))
> df.hint("hint2", "A", 10000)
> sql("select /*+ hint1((1,2,3)) */")
> sql("select /*+ hint2('A', 10000) */")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to