This is an automated email from the ASF dual-hosted git repository.
viirya 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 9808c15 [SPARK-32608][SQL][FOLLOW-UP][TEST-HADOOP2.7][TEST-HIVE1.2]
Script Transform ROW FORMAT DELIMIT value should format value
9808c15 is described below
commit 9808c15eecff6f9947e062ae507cfd87837fff0d
Author: angerszhu <[email protected]>
AuthorDate: Sun Aug 23 08:08:55 2020 -0700
[SPARK-32608][SQL][FOLLOW-UP][TEST-HADOOP2.7][TEST-HIVE1.2] Script
Transform ROW FORMAT DELIMIT value should format value
### What changes were proposed in this pull request?
As mentioned in
https://github.com/apache/spark/pull/29428#issuecomment-678735163 by viirya ,
fix bug in UT, since in script transformation no-serde mode, output of
decimal is same in both hive-1.2/hive-2.3
### Why are the changes needed?
FIX UT
### Does this PR introduce _any_ user-facing change?
NO
### How was this patch tested?
EXISTED UT
Closes #29520 from AngersZhuuuu/SPARK-32608-FOLLOW.
Authored-by: angerszhu <[email protected]>
Signed-off-by: Liang-Chi Hsieh <[email protected]>
---
.../apache/spark/sql/execution/BaseScriptTransformationSuite.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/sql/core/src/test/scala/org/apache/spark/sql/execution/BaseScriptTransformationSuite.scala
b/sql/core/src/test/scala/org/apache/spark/sql/execution/BaseScriptTransformationSuite.scala
index a82d87c..b36c06b 100644
---
a/sql/core/src/test/scala/org/apache/spark/sql/execution/BaseScriptTransformationSuite.scala
+++
b/sql/core/src/test/scala/org/apache/spark/sql/execution/BaseScriptTransformationSuite.scala
@@ -345,7 +345,7 @@ abstract class BaseScriptTransformationSuite extends
SparkPlanTest with SQLTestU
'a.cast("string"),
'b.cast("string"),
'c.cast("string"),
- decimalToString('d),
+ 'd.cast("string"),
'e.cast("string")).collect())
// input/output with different delimit and show result
@@ -368,7 +368,7 @@ abstract class BaseScriptTransformationSuite extends
SparkPlanTest with SQLTestU
'a.cast("string"),
'b.cast("string"),
'c.cast("string"),
- decimalToString('d),
+ 'd.cast("string"),
'e.cast("string"))).collect())
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]