You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Adam Kennedy (Jira)" <ji...@apache.org> on 2023/04/14 21:57:00 UTC
[jira] [Created] (CALCITE-5647) Metadata methods evade mq.getRowCount and directly call rel.estimateRowCount
Adam Kennedy created CALCITE-5647:
-------------------------------------
Summary: Metadata methods evade mq.getRowCount and directly call rel.estimateRowCount
Key: CALCITE-5647
URL: https://issues.apache.org/jira/browse/CALCITE-5647
Project: Calcite
Issue Type: Bug
Components: core
Affects Versions: 1.34.0
Reporter: Adam Kennedy
A few locations in Calcite call rel.estimateRowCount(mq) when they should instead call mq.getRowCount(red).
We detected this because we implemented row count estimation entirely within an alternative handle instead of RelMdRowCount, and then override estimateRowCount to ensure the custom handler is user, by throwing an unreachable code exception.
A few places in Calcite trigger these unreachable exceptions because they do not use mq.getRowCount.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)