You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (Jira)" <ji...@apache.org> on 2021/03/28 17:42:00 UTC
[jira] [Created] (CALCITE-4558) Sort CPU cost should be aligned
with filter and project: sort should incur row copy cost
Vladimir Sitnikov created CALCITE-4558:
------------------------------------------
Summary: Sort CPU cost should be aligned with filter and project: sort should incur row copy cost
Key: CALCITE-4558
URL: https://issues.apache.org/jira/browse/CALCITE-4558
Project: Calcite
Issue Type: Improvement
Components: core
Affects Versions: 1.26.0
Reporter: Vladimir Sitnikov
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 .
--
This message was sent by Atlassian Jira
(v8.3.4#803005)