[SPARK-58178][SQL][TEST][3.5] Expected size needs to increase#57358
[SPARK-58178][SQL][TEST][3.5] Expected size needs to increase#57358holdenk wants to merge 1 commit into
Conversation
…har) Co-authored-by: Holden Karau <holden@pigscanfly.ca>
| sql(s"INSERT INTO $tblName VALUES (1, 'a', '2019-12-13')") | ||
|
|
||
| val expectedSize = 657 | ||
| val expectedSize = 658 |
There was a problem hiding this comment.
I guess due to 3.5.9 => 3.5.10?
| Seq(tbl, ext_tbl).foreach { tblName => | ||
| sql(s"INSERT INTO $tblName VALUES (1, 'a', '2019-12-13')") | ||
|
|
||
| val expectedSize = 657 |
There was a problem hiding this comment.
The fix again hardcodes another magic byte count (658), preserving the fragility that caused this issue.
It will fail again on any future version-string-length change or Parquet bump on 3.5.
A better fix (SPARK-53422) is already merged on master. Should we consider cherry picking it?
There was a problem hiding this comment.
Oh, I wrote this patch ... Since Spark 3.5.[x] won't go to 3.5.100, I'm fine with either backporting that or this simple fix
|
I would agree with @uros-b 's comment if this is a normal branch. However, I prefer @holdenk 's approach for now.
Technically, @uros-b 's argument is invalid because
Line 143 in 71d3aca Moreover, Apache Parquet 1.13.2 doesn't exist and I don't think Apache Parquet community will do a new security releases for 1.13.1. For the following, we didn't backport SPARK-53422 to
I'd like to recommend to merge this surgical one to |
|
Let me merge this in order to recover For @uros-b 's suggestion, we can still cherry-pick independently on the healthy Of course, we should decide to backport it to |
### What changes were proposed in this pull request? Increases expected string size. ### Why are the changes needed? Version string embedded in results ### Does this PR introduce _any_ user-facing change? Test only ### How was this patch tested? Previous failing test now passes ### Was this patch authored or co-authored using generative AI tooling? no Closes #57358 from holdenk/SPARK-58178-fix-string-comp-in-suits. Lead-authored-by: Holden Karau <holden@pigscanfly.ca> Co-authored-by: Holden Karau <holden.karau@snowflake.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
|
Merge Summary:
Posted by |
|
Thanks @dongjoon-hyun ! |
What changes were proposed in this pull request?
Increases expected string size.
Why are the changes needed?
Version string embedded in results
Does this PR introduce any user-facing change?
Test only
How was this patch tested?
Previous failing test now passes
Was this patch authored or co-authored using generative AI tooling?
no