Mihai Budiu created CALCITE-7504:
------------------------------------
Summary: The Hypergraph code does not use lazy logging
Key: CALCITE-7504
URL: https://issues.apache.org/jira/browse/CALCITE-7504
Project: Calcite
Issue Type: Bug
Components: core
Affects Versions: 1.41.0
Reporter: Mihai Budiu
The Hypergraph-based join optimization uses logging statements that look like
this:
{code:java}
LOGGER.debug("Initialize the dp table. Node {{}} is:\n {}",
i,
RelOptUtil.toString(hyperGraph.getInput(i)));{code}
The problem is that these calls will evaluate their arguments, e.g., toString,
which can be quite expensive. Ideally a lazy version of logging should be used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)