Skip to content

Add EmptyNativeRDD extending NativeRDD #1431

@guixiaowen

Description

@guixiaowen

Add a EmptyNativeRDD extending NativeRDD.

The characteristics of EmptyNativeRDD are:

  1. it extends NativeRDD;
  2. rddPartitions is empty;
  3. calling the compute method will throw an exception.

The purpose of EmptyNativeRDD is:

  1. Flexible placeholder, simplifying DAG construction, reducing code complexity, and keeping the DAG structure complete;
  2. Reduces redundant implementations, achieving a clearer inheritance structure.

Scenarios for using EmptyNativeRDD:

  1. When NativeParquetScan generates a NativeRDD, if filePartitions is 0, an EmptyNativeRDD is created;
  2. When NativeOrcScan generates a NativeRDD, if filePartitions is 0, an EmptyNativeRDD is created.

Metadata

Metadata

Assignees

No one assigned

    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