[SPARK-25031][SQL] Fix MapType schema print#22006
[SPARK-25031][SQL] Fix MapType schema print#22006invkrh wants to merge 4 commits intoapache:masterfrom
Conversation
mgaido91
left a comment
There was a problem hiding this comment.
the change itself LGTM, just left one comment.
cc @gatorsmile @HyukjinKwon for triggering the build
| @@ -0,0 +1,47 @@ | |||
| /* | |||
There was a problem hiding this comment.
I think we can put this in DataTypeSuite
|
ok to test |
|
|
||
| val keyType: DataType = StructType( | ||
| Seq(StructField("a", DataTypes.IntegerType), | ||
| StructField("b", DataTypes.IntegerType))) |
| import org.apache.spark.SparkFunSuite | ||
|
|
||
| class MapTypeSuite extends SparkFunSuite { | ||
| test("SPARK-25031") { |
There was a problem hiding this comment.
nit: SPARK-25031: MapType should produce current formatted string for complex types
|
LGTM too otherwise |
|
Test build #94282 has finished for PR 22006 at commit
|
|
Test build #94355 has finished for PR 22006 at commit
|
|
the test failure is flaky. Just created a PR for fixing it: #22023. I'd still prefer to merge the added UT to |
|
Let's just put this in |
|
retest this please |
| false) | ||
|
|
||
| test("SPARK-25031: MapType should produce current formatted string for complex types") { | ||
|
|
|
Test build #94372 has finished for PR 22006 at commit
|
|
retest this please |
|
Test build #94368 has finished for PR 22006 at commit
|
|
Thanks! Merged to master. |
|
Test build #94383 has finished for PR 22006 at commit
|
The PR fix the bug in `buildFormattedString` function in `MapType`, which makes the printed schema misleading. Added UT Closes apache#22006 from invkrh/fix-map-schema-print. Authored-by: invkrh <invkrh@gmail.com> Signed-off-by: Xiao Li <gatorsmile@gmail.com> (cherry picked from commit 8c13cb2) Ref: LIHADOOP-40100 RB=1410523 BUG=LIHADOOP-40100 G=superfriends-reviewers R=fli,mshen,yezhou,edlu A=edlu
What changes were proposed in this pull request?
The PR fix the bug in
buildFormattedStringfunction inMapType, which makes the printed schema misleading.How was this patch tested?
Added UT