You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Haisheng Yuan (Jira)" <ji...@apache.org> on 2020/03/26 22:22:00 UTC

[jira] [Created] (CALCITE-3879) Rel Id generator should not be static

Haisheng Yuan created CALCITE-3879:
--------------------------------------

             Summary: Rel Id generator should not be static
                 Key: CALCITE-3879
                 URL: https://issues.apache.org/jira/browse/CALCITE-3879
             Project: Calcite
          Issue Type: Improvement
          Components: core
            Reporter: Haisheng Yuan


The rel id will continue increasing until the class is unloaded. We have observed that the id is reaching 100 million after running for just several days. Although we don't use the id for calculation, it might be OK for integer overflow, but it doesn't make sense to generate unique id globally, it will hard to read the dumped plan and the rel id in the log, because the rel id is so large. IMO, the id should be generated per query context.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)