marin-ma commented on PR #5200:
URL:
https://github.com/apache/incubator-gluten/pull/5200#issuecomment-2031331728
> @FelixYBW @yma11 Seems like there's a high probability to get the result
mismatch error with nested complex types. e.g. run test "reproduce" with seed
1711691870863L
>
> ```
> test("reproduce") {
> // Replace sql with the actual failed sql.
> val sql = REPARTITION_SQL(1)
> // Replace seed '0L' with the actual failed seed.
> Seq(1711691870863L).foreach {
> seed =>
> dataGenerator.reFake(seed)
> logWarning(
> s"==============================> " +
> s"Started reproduction (seed: ${dataGenerator.getSeed})")
> val result = executeQuery(sql)
> assert(result.isInstanceOf[Successful], s"Failed to run
'reproduce' with seed: $seed")
> }
> }
> ```
Note the test failure was due to the result was misjudged from the framework
itself. Two `Array[Byte]` (BinaryType) in nested complex types with same
elements will be marked as non-equal result, but a simple BinaryType will be
converted to `Seq[Byte]` so it can pass the test. Simply removed the
`BinaryType` from the leaf child of nested complex type.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]