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)