Skip to content

perf: only check Parquet type once in NativeBatchReader #1810

@mbutrovich

Description

@mbutrovich

NativeBatchReader calls checkParquetType on all of the columns on every invocation of loadNextBatch. I tried moving it up to init but some Spark SQL tests expect the exceptions that this generates to come from a call stack going into loadNextBatch rather than init. Perhaps we can stash a boolean that we've checked the columns after the first batch, and then elide the column checks on subsequent batches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions