Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3406

duplicate initialize scope

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Not A Problem
    • 1.21.0
    • None
    • core
    • None

    Description

      scope was reinitialized in SqlValidatorImpl.validate() method.

      https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java#L647

      //代码占位符
      SqlValidatorScope scope = new EmptyScope(this); 
      scope = new CatalogScope(scope, ImmutableList.of("CATALOG"));
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            liuzonghao liuzonghao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: