Uh oh!
There was an error while loading. Please reload this page.
[Spark-11522][SQL] input_file_name() returns "" for external tables - #9542
[Spark-11522][SQL] input_file_name() returns "" for external tables#9542xwu0226 wants to merge 10 commits into
Conversation
rxin
commented
Nov 8, 2015
Jenkins, test this please. |
SparkQA
commented
Nov 8, 2015
Test build #2014 has finished for PR 9542 at commit
|
xwu0226
commented
Nov 8, 2015
@rxin I pushed again for the scala style test issue. Will the test build be kicked off automatically or manually? Thanks! |
squito
commented
Nov 9, 2015
Jenkins, ok to test |
SparkQA
commented
Nov 9, 2015
Test build #45330 has finished for PR 9542 at commit
|
xwu0226
commented
Nov 11, 2015
There was a problem hiding this comment.
Can you call SqlNewHadoopRDD.unsetInputFileName() in https://github.com/apache/spark/pull/9542/files#diff-83eb37f7b0ebed3c14ccb7bff0d577c2R257? Like what we do in SqlNewHadoopRDD?
xwu0226
commented
Nov 14, 2015
@yhuai Thanks for pointing it out! I will make the change now. |
SparkQA
commented
Nov 14, 2015
Test build #45911 has finished for PR 9542 at commit
|
There was a problem hiding this comment.
Seems we do not need to say where it points to since it is a managed table.
yhuai
commented
Nov 15, 2015
@xwu0226 Looks good! I left a few comments regarding the format. |
SparkQA
commented
Nov 15, 2015
Test build #45956 has finished for PR 9542 at commit
|
xwu0226
commented
Nov 15, 2015
Accidentially pushed another JIRA's code together. . I am backing it out |
yhuai
commented
Nov 15, 2015
LGTM pending jenkins. |
yhuai
commented
Nov 15, 2015
@xwu0226 Sorry for asking you to update several times. I just realized that you added a bunch of files in |
SparkQA
commented
Nov 15, 2015
Test build #45959 has finished for PR 9542 at commit
|
xwu0226
commented
Nov 15, 2015
@yhuai I did not know that we should not update the resources/data directory.. I thought the test data files were added along the way by contributors. Thanks for pointing it out! Let me update HiveUDFSuite then. |
yhuai
commented
Nov 15, 2015
@xwu0226 Thank you! |
yhuai
commented
Nov 16, 2015
oh seems there is a conflict... |
xwu0226
commented
Nov 16, 2015
@yhuai Is it mergable? |
yhuai
commented
Nov 16, 2015
@xwu0226 Can you resolve the conflict? Once you update the pr and jenkins is good, I will merge it. Thanks! |
SparkQA
commented
Nov 16, 2015
Test build #45970 has finished for PR 9542 at commit
|
yhuai
commented
Nov 16, 2015
test this please |
SparkQA
commented
Nov 16, 2015
Test build #45979 has finished for PR 9542 at commit
|
SparkQA
commented
Nov 16, 2015
Test build #45977 has finished for PR 9542 at commit
|
xwu0226
commented
Nov 16, 2015
@yhuai The last test build passed. Do you know what might cause the previous errors? After resolving the conflicts, my own diff for this PR is still the same place, that passed test before. Hope it did not break anything. Thanks! |
yhuai
commented
Nov 16, 2015
@xwu0226https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/45977/consoleFull is good. I will merge it to master and branch 1.6. |
When computing partition for non-parquet relation, `HadoopRDD.compute` is used. but it does not set the thread local variable `inputFileName` in `NewSqlHadoopRDD`, like `NewSqlHadoopRDD.compute` does.. Yet, when getting the `inputFileName`, `NewSqlHadoopRDD.inputFileName` is exptected, which is empty now. Adding the setting inputFileName in HadoopRDD.compute resolves this issue. Author: xin Wu <xinwu@us.ibm.com> Closes#9542 from xwu0226/SPARK-11522. (cherry picked from commit 0e79604) Signed-off-by: Yin Huai <yhuai@databricks.com>
xwu0226
commented
Nov 16, 2015
@yhuai Many thanks! |
When computing partition for non-parquet relation,
HadoopRDD.computeis used. but it does not set the thread local variableinputFileNameinNewSqlHadoopRDD, likeNewSqlHadoopRDD.computedoes.. Yet, when getting theinputFileName,NewSqlHadoopRDD.inputFileNameis exptected, which is empty now.Adding the setting inputFileName in HadoopRDD.compute resolves this issue.