Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-51092][SS] Skip the v1 FlatMapGroupsWithState tests with timeo…
…ut on big endian platforms ### What changes were proposed in this pull request? Skip the v1 FlatMapGroupsWithState tests with timeout on big endian platforms. ### Why are the changes needed? The timestampTimeoutAttribute of StateManagerImplV1 is declared as IntegerType instead of LongType which breaks serialization on big endian platforms. This can't be fixed because it would be a breaking schema change so skip the tests instead. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Tested with existing tests on amd64 (little endian) and s390x (big endian) Below is the test result from s390x: ``` - flatMapGroupsWithState - streaming with processing time timeout - state format version 1 !!! CANCELED !!! FlatMapGroupsWithStateSuite.this.isStateFormatSupported(FlatMapGroupsWithStateSuite.this.sqlConf.getConf[Int](org.apache.spark.sql.internal.SQLConf.FLATMAPGROUPSWITHSTATE_STATE_FORMAT_VERSION)) was false (FlatMapGroupsWithStateSuite.scala:471) -- - flatMapGroupsWithState - streaming with processing time timeout - state format version 2 -- - flatMapGroupsWithState - streaming with processing time timeout - state format version 1 (RocksDBStateStore) !!! CANCELED !!! FlatMapGroupsWithStateSuite.this.isStateFormatSupported(FlatMapGroupsWithStateSuite.this.sqlConf.getConf[Int](org.apache.spark.sql.internal.SQLConf.FLATMAPGROUPSWITHSTATE_STATE_FORMAT_VERSION)) was false (FlatMapGroupsWithStateSuite.scala:471) -- - flatMapGroupsWithState - streaming with processing time timeout - state format version 1 (RocksDBStateStore with changelog checkpointing) !!! CANCELED !!! FlatMapGroupsWithStateSuite.this.isStateFormatSupported(FlatMapGroupsWithStateSuite.this.sqlConf.getConf[Int](org.apache.spark.sql.internal.SQLConf.FLATMAPGROUPSWITHSTATE_STATE_FORMAT_VERSION)) was false (FlatMapGroupsWithStateSuite.scala:471) -- - flatMapGroupsWithState - streaming with processing time timeout - state format version 2 (RocksDBStateStore) -- - flatMapGroupsWithState - streaming with processing time timeout - state format version 2 (RocksDBStateStore with changelog checkpointing) -- - flatMapGroupsWithState - streaming w/ event time timeout + watermark - state format version 1 !!! CANCELED !!! FlatMapGroupsWithStateSuite.this.isStateFormatSupported(FlatMapGroupsWithStateSuite.this.sqlConf.getConf[Int](org.apache.spark.sql.internal.SQLConf.FLATMAPGROUPSWITHSTATE_STATE_FORMAT_VERSION)) was false (FlatMapGroupsWithStateSuite.scala:539) -- - flatMapGroupsWithState - streaming w/ event time timeout + watermark - state format version 2 -- - flatMapGroupsWithState - streaming w/ event time timeout + watermark - state format version 1 (RocksDBStateStore) !!! CANCELED !!! FlatMapGroupsWithStateSuite.this.isStateFormatSupported(FlatMapGroupsWithStateSuite.this.sqlConf.getConf[Int](org.apache.spark.sql.internal.SQLConf.FLATMAPGROUPSWITHSTATE_STATE_FORMAT_VERSION)) was false (FlatMapGroupsWithStateSuite.scala:539) -- - flatMapGroupsWithState - streaming w/ event time timeout + watermark - state format version 1 (RocksDBStateStore with changelog checkpointing) !!! CANCELED !!! FlatMapGroupsWithStateSuite.this.isStateFormatSupported(FlatMapGroupsWithStateSuite.this.sqlConf.getConf[Int](org.apache.spark.sql.internal.SQLConf.FLATMAPGROUPSWITHSTATE_STATE_FORMAT_VERSION)) was false (FlatMapGroupsWithStateSuite.scala:539) -- - flatMapGroupsWithState - streaming w/ event time timeout + watermark - state format version 2 (RocksDBStateStore) -- - flatMapGroupsWithState - streaming w/ event time timeout + watermark - state format version 2 (RocksDBStateStore with changelog checkpointing) -- - flatMapGroupsWithState, state ver 1 !!! CANCELED !!! java.nio.ByteOrder.nativeOrder().equals(java.nio.ByteOrder.LITTLE_ENDIAN) was false (StateDataSourceReadSuite.scala:802) -- - flatMapGroupsWithState, state ver 2 -- - flatMapGroupsWithState, state ver 1 !!! CANCELED !!! java.nio.ByteOrder.nativeOrder().equals(java.nio.ByteOrder.LITTLE_ENDIAN) was false (StateDataSourceReadSuite.scala:802) -- - flatMapGroupsWithState, state ver 2 -- - flatMapGroupsWithState, state ver 1 !!! CANCELED !!! java.nio.ByteOrder.nativeOrder().equals(java.nio.ByteOrder.LITTLE_ENDIAN) was false (StateDataSourceReadSuite.scala:802) -- - flatMapGroupsWithState, state ver 2 ``` ### Was this patch authored or co-authored using generative AI tooling? No Closes #49811 from jonathan-albrecht-ibm/master-endian-flatMapGroups. Authored-by: Jonathan Albrecht <[email protected]> Signed-off-by: Jungtaek Lim <[email protected]>
- Loading branch information