Skip to content

Commit

Permalink
[HOT-FIX] fix compilation
Browse files Browse the repository at this point in the history
This is caused by 2 PRs that were merged at the same time:
cb06209
2b24a71

Closes #25597 from cloud-fan/hot-fix.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
  • Loading branch information
cloud-fan committed Aug 27, 2019
1 parent 2b24a71 commit 90b10b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 90b10b4

Please sign in to comment.