Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10744 Integrate Flink with Hive metastore
  3. FLINK-11247

Fix DESCRIBE command to support catalog tables

    XMLWordPrintableJSON

Details

    Description

      When the DESCRIBE command is applied to a catalog table, it fails with an error:

      Flink SQL> DESCRIBE nyc.TaxiRides;                                                                                                                                                
      [ERROR] Could not execute SQL statement. Reason:                                                                                                                                  
      org.apache.flink.table.api.TableException: Table 'nyc.TaxiRides' was not found.
      

      The reason appears to be that LocalExecutor calls TableEnvironment::scan with the fully-qualified table name as a parameter (e.g. scan("nyc.TaxiRides")) rather than with an array of components (e.g. scan("nyc", "TaxiRides")).

      Attachments

        Issue Links

          Activity

            People

              yanghua vinoyang
              eronwright Eron Wright
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m