Skip to content

initial commit#3

Draft
zifeif2 wants to merge 11 commits intomasterfrom
repartition-writer-single-cf
Draft

initial commit#3
zifeif2 wants to merge 11 commits intomasterfrom
repartition-writer-single-cf

Conversation

@zifeif2
Copy link
Owner

@zifeif2 zifeif2 commented Nov 22, 2025

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

@github-actions github-actions bot added the SQL label Nov 22, 2025
println("before decoding valueBytes size: ", valueBytes.length)
println("Platform.BYTE_ARRAY_OFFSET", Platform.BYTE_ARRAY_OFFSET)

val valueRow = new UnsafeRow(4)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard coded number of fields here for integration test

// The bytes are in UnsafeRow memory format from StatePartitionReaderAllColumnFamilies
keyRow.pointTo(keyBytes, Platform.BYTE_ARRAY_OFFSET, keyBytes.length)
val keyRow = new UnsafeRow(1)
keyRow.pointTo(keyBytes, Platform.BYTE_ARRAY_OFFSET,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the part that I am not sure about - how to decode the bytes fetched from AllColumnFamiliesReader to an UnsafeRow, so that RocksDBStateStoreProvider can encode it to the correct format of Array[Byte] later?

.as[(Int, Long, Long, Int, Int)]

// check with more data - leverage full partitions
testStream(aggregated, OutputMode.Update)(
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running some query on target src to make sure that when overwriting the partition, we won't read the previous store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant