You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by we...@apache.org on 2019/08/27 15:31:22 UTC

[spark] branch master updated: [HOT-FIX] fix compilation

This is an automated email from the ASF dual-hosted git repository.

wenchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 90b10b4  [HOT-FIX] fix compilation
90b10b4 is described below

commit 90b10b4f7a54caaf0962424a111fddbd42b107b1
Author: Wenchen Fan <we...@databricks.com>
AuthorDate: Tue Aug 27 23:30:44 2019 +0800

    [HOT-FIX] fix compilation
    
    This is caused by 2 PRs that were merged at the same time:
    https://github.com/apache/spark/commit/cb06209fc908bac6ce6a8f20653865489773cbc3
    https://github.com/apache/spark/commit/2b24a71fec021755f43db99628a56bd4a01518eb
    
    Closes #25597 from cloud-fan/hot-fix.
    
    Authored-by: Wenchen Fan <we...@databricks.com>
    Signed-off-by: Wenchen Fan <we...@databricks.com>
---
 .../src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala   | 6 +++---
 .../org/apache/spark/sql/test/DataFrameReaderWriterSuite.scala      | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala
index 8f6c47c..0d236a4 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala
@@ -585,7 +585,7 @@ class InsertSuite extends DataSourceTest with SharedSparkSession {
 
   test("Throw exception on unsafe cast with ANSI casting policy") {
     withSQLConf(
-      SQLConf.USE_V1_SOURCE_WRITER_LIST.key -> "parquet",
+      SQLConf.USE_V1_SOURCE_LIST.key -> "parquet",
       SQLConf.STORE_ASSIGNMENT_POLICY.key -> SQLConf.StoreAssignmentPolicy.ANSI.toString) {
       withTable("t") {
         sql("create table t(i int, d double) using parquet")
@@ -610,7 +610,7 @@ class InsertSuite extends DataSourceTest with SharedSparkSession {
 
   test("Allow on writing any numeric value to numeric type with ANSI policy") {
     withSQLConf(
-      SQLConf.USE_V1_SOURCE_WRITER_LIST.key -> "parquet",
+      SQLConf.USE_V1_SOURCE_LIST.key -> "parquet",
       SQLConf.STORE_ASSIGNMENT_POLICY.key -> SQLConf.StoreAssignmentPolicy.ANSI.toString) {
       withTable("t") {
         sql("create table t(i int, d float) using parquet")
@@ -624,7 +624,7 @@ class InsertSuite extends DataSourceTest with SharedSparkSession {
 
   test("Allow on writing timestamp value to date type with ANSI policy") {
     withSQLConf(
-      SQLConf.USE_V1_SOURCE_WRITER_LIST.key -> "parquet",
+      SQLConf.USE_V1_SOURCE_LIST.key -> "parquet",
       SQLConf.STORE_ASSIGNMENT_POLICY.key -> SQLConf.StoreAssignmentPolicy.ANSI.toString) {
       withTable("t") {
         sql("create table t(i date) using parquet")
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/test/DataFrameReaderWriterSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/test/DataFrameReaderWriterSuite.scala
index 369feb5..b98626a 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/test/DataFrameReaderWriterSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/test/DataFrameReaderWriterSuite.scala
@@ -329,7 +329,7 @@ class DataFrameReaderWriterSuite extends QueryTest with SharedSparkSession with
 
   test("Throw exception on unsafe cast with ANSI casting policy") {
     withSQLConf(
-      SQLConf.USE_V1_SOURCE_WRITER_LIST.key -> "parquet",
+      SQLConf.USE_V1_SOURCE_LIST.key -> "parquet",
       SQLConf.STORE_ASSIGNMENT_POLICY.key -> SQLConf.StoreAssignmentPolicy.ANSI.toString) {
       withTable("t") {
         sql("create table t(i int, d double) using parquet")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org