Uh oh!
There was an error while loading. Please reload this page.
[SPARK-6202] [SQL] enable variable substitution on test framework - #4930
[SPARK-6202] [SQL] enable variable substitution on test framework#4930adrian-wang wants to merge 4 commits into
Conversation
SparkQA
commented
Mar 6, 2015
Test build #28333 has started for PR 4930 at commit
|
SparkQA
commented
Mar 6, 2015
Test build #28333 has finished for PR 4930 at commit
|
AmplabJenkins
commented
Mar 6, 2015
Test PASSed. |
chenghao-intel
commented
Mar 9, 2015
LGTM |
yhuai
commented
Mar 17, 2015
Can you explain the reason that you need to do the change when we already have substitution in |
yhuai
commented
Mar 17, 2015
Also, add a comment in the code to explain the reason will be great. |
adrian-wang
commented
Mar 18, 2015
we should substitute variables in hql to pass the text to parseSql() as a parameter. Hive parser need substituted text. HiveContext.sql() does this but return a DataFrame, while we need a logicalPlan so we cannot reuse that. |
SparkQA
commented
Mar 18, 2015
Test build #28775 has started for PR 4930 at commit
|
There was a problem hiding this comment.
Can you just change this line and do what we have in sql (new VariableSubstitution().substitute(hiveconf, hql))?
There was a problem hiding this comment.
but runSqlHive() also require a substituted text for use.
SparkQA
commented
Mar 18, 2015
Test build #28775 has finished for PR 4930 at commit
|
AmplabJenkins
commented
Mar 18, 2015
Test PASSed. |
There was a problem hiding this comment.
@yhuairunSqlHive calls Driver.run directly without do substitution, so we have to substitute for this and QueryExecution both.
There was a problem hiding this comment.
Seems eventually Driver.run will call Driver.compile, which will do the substitution?
There was a problem hiding this comment.
@adrian-wang how about adding the substitution in HiveContext.runSqlHive or HiveContext.runHive? Then we probably not necessary to change anything in TestHive.
SparkQA
commented
Mar 20, 2015
Test build #28905 has started for PR 4930 at commit
|
SparkQA
commented
Mar 20, 2015
Test build #28905 has finished for PR 4930 at commit
|
AmplabJenkins
commented
Mar 20, 2015
Test PASSed. |
adrian-wang
commented
Mar 21, 2015
ping @yhuai |
SparkQA
commented
Mar 23, 2015
Test build #28981 has started for PR 4930 at commit
|
SparkQA
commented
Mar 23, 2015
Test build #28982 has started for PR 4930 at commit
|
SparkQA
commented
Mar 23, 2015
Test build #28981 has finished for PR 4930 at commit
|
AmplabJenkins
commented
Mar 23, 2015
Test PASSed. |
SparkQA
commented
Mar 23, 2015
Test build #28982 has finished for PR 4930 at commit
|
AmplabJenkins
commented
Mar 23, 2015
Test PASSed. |
yhuai
commented
Mar 23, 2015
LGTM. Is there any Hive query test that we should enable? |
adrian-wang
commented
Mar 23, 2015
There is one of "mapjoin_addjar", and I'll add that after I refactor #4586 . So I'd like this one merge first, thanks a lot! |
marmbrus
commented
Mar 26, 2015
Thanks! Merged to master. |
No description provided.