eric-wang-1990 commented on code in PR #2669:
URL: https://github.com/apache/arrow-adbc/pull/2669#discussion_r2027736544
##########
csharp/src/Drivers/Apache/Spark/SparkDatabricksReader.cs:
##########
@@ -79,6 +91,49 @@ public SparkDatabricksReader(HiveServer2Statement statement,
Schema schema)
}
}
+ private async Task ProcessFetchedBatchesAsync(CancellationToken
cancellationToken)
+ {
+ var batch = this.batches![this.index];
+
+ // Ensure batch data exists
+ if (batch.Batch == null || batch.Batch.Length == 0)
+ {
+ this.index++;
+ return;
+ }
+
+ try
+ {
+ byte[] dataToUse = batch.Batch;
+
+ // If LZ4 compression is enabled, try to decompress the data
+ if (isLz4Compressed)
+ {
+ try
+ {
+ var dataStream = await
Lz4Utilities.DecompressLz4Async(batch.Batch, cancellationToken);
Review Comment:
This is not needed since now it will return a ReadOnlyMemory
--
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]