From 65b7b184d5755c27e27d5590adc78966fca951ec Mon Sep 17 00:00:00 2001 From: Bo Zhang Date: Wed, 16 Feb 2022 12:49:48 +0800 Subject: [PATCH] Fix tests --- .../spark/sql/execution/command/v1/ShowCreateTableSuite.scala | 2 +- .../spark/sql/execution/command/v2/ShowCreateTableSuite.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/ShowCreateTableSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/ShowCreateTableSuite.scala index 1dd5e4a5aaa79..ee8aa424d5c26 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/ShowCreateTableSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/ShowCreateTableSuite.scala @@ -53,7 +53,7 @@ trait ShowCreateTableSuiteBase extends command.ShowCreateTableSuiteBase |COMMENT 'This is a comment' |TBLPROPERTIES ('prop1' = '1', 'prop2' = '2', 'prop3' = 3, 'prop4' = 4) |PARTITIONED BY (a) - |LOCATION '/tmp' + |LOCATION 'file:/tmp' """.stripMargin) val showDDL = getShowCreateDDL(t) assert(showDDL === Array( diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/ShowCreateTableSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/ShowCreateTableSuite.scala index 2adbf3cc1c8c0..7c506812079ec 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/ShowCreateTableSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/ShowCreateTableSuite.scala @@ -101,7 +101,7 @@ class ShowCreateTableSuite extends command.ShowCreateTableSuiteBase with Command "'via' = '2')", "PARTITIONED BY (a)", "COMMENT 'This is a comment'", - "LOCATION 'file:///tmp'", + "LOCATION 'file:/tmp'", "TBLPROPERTIES (", "'prop1' = '1',", "'prop2' = '2',",