Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4544

Improve error messages for REFRESH TABLE METADATA command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.0
    • Metadata
    • None

    Description

      Improve the error messages thrown by REFRESH TABLE METADATA command:
      In the first case below, the error is maprfs.abc doesn't exist. It should throw a Object not found or workspace not found. It is currently throwing a non helpful message;
      0: jdbc:drill:> refresh table metadata maprfs.abc.`my_table`;
      --------------------+
      ok summary
      --------------------+
      false Error: null
      --------------------+
      1 row selected (0.355 seconds)
      In the second case below, it says refresh table metadata is supported only for single-directory based Parquet tables. But the command works for nested multi-directory Parquet files.
      0: jdbc:drill:> refresh table metadata maprfs.vnaranammalpuram.`rfm_sales_vw`;
      -----------+
      ok summary
      -----------+
      false Table rfm_sales_vw does not support metadata refresh. Support is currently limited to single-directory-based Parquet tables.
      -----------+
      1 row selected (0.418 seconds)
      0: jdbc:drill:>

      Attachments

        Activity

          People

            arina Arina Ielchiieva
            arina Arina Ielchiieva
            Rahul Kumar Challapalli Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: