spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-20854) extend hint syntax to support any expression, not just identifiers or strings
Date Wed, 24 May 2017 11:18:04 GMT

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

Apache Spark commented on SPARK-20854:
--------------------------------------

User 'bogdanrdc' has created a pull request for this issue:
https://github.com/apache/spark/pull/18086

> 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: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Bogdan Raducanu
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message