diff options
author | Liang-Chi Hsieh <viirya@gmail.com> | 2016-03-02 22:21:49 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-03-02 22:21:49 -0800 |
commit | f87ce0504ea0697969ac3e67690c78697b76e94a (patch) | |
tree | c3d5aec49bfb79690d4dbfd3a58db7f17ce461c1 /core | |
parent | 9c274ac4a6a190a436180ffb0db0c926d6abd0b0 (diff) | |
download | spark-f87ce0504ea0697969ac3e67690c78697b76e94a.tar.gz spark-f87ce0504ea0697969ac3e67690c78697b76e94a.tar.bz2 spark-f87ce0504ea0697969ac3e67690c78697b76e94a.zip |
[SPARK-13616][SQL] Let SQLBuilder convert logical plan without a project on top of it
JIRA: https://issues.apache.org/jira/browse/SPARK-13616
## What changes were proposed in this pull request?
It is possibly that a logical plan has been removed `Project` from the top of it. Or the plan doesn't has a top `Project` from the beginning because it is not necessary. Currently the `SQLBuilder` can't convert such plans back to SQL. This change is to add this feature.
## How was this patch tested?
A test is added to `LogicalPlanToSQLSuite`.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #11466 from viirya/sqlbuilder-notopselect.
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions