Skip to content

Explore iceberg scan empty batches #3607

@comphead

Description

@comphead

It doesnt' have to be a bug, but mighty be interesting to explore

Looks like deep check before was able to catch empty schemas, please refer to failing tests https://github.com/apache/datafusion-comet/actions/runs/22410645074/job/64885589948?pr=3536

Leading to errors like

        org.apache.comet.CometNativeException: Batch adaptation failed: Arrow error: Invalid argument error: must either specify a row count or at least one column

when creating a record batch in RecordBatch::try_new(Arc::clone(target_schema), columns).map_err(|e| e.into())
in
adapt_batch_with_expressions

So both columns and row_count were empty

Originally posted by @comphead in #3536 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions