[
https://issues.apache.org/jira/browse/CALCITE-7504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated CALCITE-7504:
------------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Minor
> Labels: pull-request-available
>
> 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)