You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "TJ Banghart (Jira)" <ji...@apache.org> on 2025/10/25 19:56:00 UTC

[jira] [Created] (CALCITE-7247) Connection config for enabling RuleMatchVisualizer

TJ Banghart created CALCITE-7247:
------------------------------------

             Summary: Connection config for enabling RuleMatchVisualizer
                 Key: CALCITE-7247
                 URL: https://issues.apache.org/jira/browse/CALCITE-7247
             Project: Calcite
          Issue Type: New Feature
          Components: core
            Reporter: TJ Banghart
            Assignee: TJ Banghart


The RuleMatchVisualizer is a very useful debugging tool; however, I’ve found it somewhat difficult to use for ad-hoc queries or when working with plans outside of Calcite’s unit tests.

I would like to add a Calcite connection configuration option that automatically attaches a RuleMatchVisualizer to any planner associated with that connection. This would make it easier to debug queries directly from sqlline or other tools over jdbc.

For example:

{code}
sqlline> !connect jdbc:calcite:ruleVisualizerDir=/tmp/viz
sqlline> SELECT * FROM emp;
RuleMatchVisualizer enabled: Output will be written to /tmp/viz/<query_id>
-- Results --
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)