-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23426][SQL] Use hive ORC impl and disable PPD for Spark 2.3.0
#20610
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
Changes from 1 commit
2d74b20
93e6c7d
7ff4ccf
46c8697
2769633
183ec21
19b50b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,16 @@ import org.apache.spark.util.Utils | |
| class FileStreamSinkSuite extends StreamTest { | ||
| import testImplicits._ | ||
|
|
||
| override def beforeAll(): Unit = { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: a simpler way to fix this
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, @cloud-fan . |
||
| super.beforeAll() | ||
| spark.sessionState.conf.setConf(SQLConf.ORC_IMPLEMENTATION, "native") | ||
| } | ||
|
|
||
| override def afterAll(): Unit = { | ||
| spark.sessionState.conf.unsetConf(SQLConf.ORC_IMPLEMENTATION) | ||
| super.afterAll() | ||
| } | ||
|
|
||
| test("unpartitioned writing and batch reading") { | ||
| val inputData = MemoryStream[Int] | ||
| val df = inputData.toDF() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -207,6 +207,16 @@ class FileStreamSourceSuite extends FileStreamSourceTest { | |
| .collect { case s @ StreamingRelation(dataSource, _, _) => s.schema }.head | ||
| } | ||
|
|
||
| override def beforeAll(): Unit = { | ||
| super.beforeAll() | ||
| spark.sessionState.conf.setConf(SQLConf.ORC_IMPLEMENTATION, "native") | ||
| } | ||
|
|
||
| override def afterAll(): Unit = { | ||
| spark.sessionState.conf.unsetConf(SQLConf.ORC_IMPLEMENTATION) | ||
| super.afterAll() | ||
|
||
| } | ||
|
|
||
| // ============= Basic parameter exists tests ================ | ||
|
|
||
| test("FileStreamSource schema: no path") { | ||
|
|
||
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.
The test coverage is the same.