Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.26.0
-
None
-
None
Description
Typical Java implementations of the sort do not copy rows (they copy references only), so
it makes little sense to have "row width" as the key driver of the sort costing.
The CPU cost for filter does not include "row copy" cost.
Even though the implementations might be different, in-core costs should be aligned.
For instance, the current, EnumerableLimitSort and EnumerableSort have bytesPerRow multiplier, however, the implementation does not copy rows field-by-field .
Attachments
Issue Links
- supercedes
-
CALCITE-4522 CPU cost of Sort should be lower if sort keys are empty
- Closed