-
Notifications
You must be signed in to change notification settings - Fork 210
Closed
Description
Add a EmptyNativeRDD extending NativeRDD.
The characteristics of EmptyNativeRDD are:
- it extends
NativeRDD; rddPartitionsis empty;- calling the
computemethod will throw an exception.
The purpose of EmptyNativeRDD is:
- Flexible placeholder, simplifying DAG construction, reducing code complexity, and keeping the DAG structure complete;
- Reduces redundant implementations, achieving a clearer inheritance structure.
Scenarios for using EmptyNativeRDD:
- When
NativeParquetScangenerates aNativeRDD, iffilePartitionsis 0, anEmptyNativeRDDis created; - When
NativeOrcScangenerates aNativeRDD, iffilePartitionsis 0, anEmptyNativeRDDis created.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels