Skip to content
Snippets Groups Projects
Commit 2134196a authored by Bogdan Raducanu's avatar Bogdan Raducanu Committed by Wenchen Fan
Browse files

[SPARK-20854][SQL] Extend hint syntax to support expressions

## What changes were proposed in this pull request?

SQL hint syntax:
* support expressions such as strings, numbers, etc. instead of only identifiers as it is currently.
* support multiple hints, which was missing compared to the DataFrame syntax.

DataFrame API:
* support any parameters in DataFrame.hint instead of just strings

## How was this patch tested?
Existing tests. New tests in PlanParserSuite. New suite DataFrameHintSuite.

Author: Bogdan Raducanu <bogdan@databricks.com>

Closes #18086 from bogdanrdc/SPARK-20854.
parent 8efc6e98
No related branches found
No related tags found
No related merge requests found
Showing
with 225 additions and 26 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment