You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2017/05/03 06:02:04 UTC
[jira] [Created] (SPARK-20576) Support generic hint function in
Dataset/DataFrame
Reynold Xin created SPARK-20576:
-----------------------------------
Summary: Support generic hint function in Dataset/DataFrame
Key: SPARK-20576
URL: https://issues.apache.org/jira/browse/SPARK-20576
Project: Spark
Issue Type: New Feature
Components: SQL
Affects Versions: 2.2.0
Reporter: Reynold Xin
Assignee: Reynold Xin
We allow users to specify hints (currently only "broadcast" is supported) in SQL and DataFrame. However, while SQL has a standard hint format (/*+ ... */), DataFrame doesn't have one and sometimes users are confused that they can't find how to apply a broadcast hint. This ticket adds a generic hint function on DataFrame that allows using the same hint on DataFrames as well as SQL.
As an example, the following will apply a broadcast hint on a DataFrame using the new hint function:
{code}
df1.join(df2.hint("broadcast"))
{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