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

Table function can not refer other table columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.35.0
    • None
    • core
    • None

    Description

      SQL

      select rmp.i from emp, table(ramp(emp.deptno)) as rmp 

      will throw an error:

      Table 'EMP' not found 

      during the validation. 

      this SQL fails because the scope of the table function during the validation is CatalogScope, not JoinScope.

      Attachments

        Issue Links

          Activity

            People

              hongyuguo hongyu guo
              hongyuguo hongyu guo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: