-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-6941][SQL] Provide a better error message to when inserting into RDD based table #7342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@yhuai it seems not possible to do checking in |
|
You can put it in |
|
thanks, I would update my implementation :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Inserting into an RDD-based table is not allowed."
|
ok to test |
|
Test build #37119 has finished for PR 7342 at commit
|
|
Test build #1052 has finished for PR 7342 at commit
|
|
Test build #37225 has finished for PR 7342 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix import order here
|
Test build #37303 has finished for PR 7342 at commit
|
|
Jenkins, retest this please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this test suite, can you change class DataFrameSuite extends QueryTest { to class DataFrameSuite extends QueryTest with SQLTestUtils {? Then, you can use withTempPath to create a temp dir and save data in this temp dir. withTempPath will automatically clean up all of your temp data/dirs. Basically, you can do
test("SPARK-6941: Better error message for inserting into RDD-based Table") {
withTempPath { dir =>
// You can create some dirs inside the given temp dir.
val tempParquet = new File(dir, "tmp_parquet")
val tempJson = new File(dir, "tmp_json")
...
// Your test code, which uses created temp dirs.
...
}
}
|
Looks good. Left a few comments about the test. |
|
Test build #37394 has finished for PR 7342 at commit
|
|
Thanks for the update! LGTM. I will merge it to master once jenkins passes. |
|
Test build #37513 has finished for PR 7342 at commit
|
|
Test build #37516 has finished for PR 7342 at commit
|
|
@yhuai, Thanks for the step by step guide, really appreciate it. |
JIRA: https://issues.apache.org/jira/browse/SPARK-6941