Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4168

Adopt Oracle-style hint placement for INSERT statements

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.2, Impala 2.3.0, Impala 2.5.0, Impala 2.4.0, Impala 2.6.0, Impala 2.7.0
    • Impala 2.12.0
    • Frontend

    Description

      For consistency with Oracle we should consider accepting hints in the same places in SQL statements. For example, our current INSERT statements accepts hints right before the SELECT portion:

      INSERT INTO t PARTITIONED(year,month) /*+ hints */ SELECT * FROM src;
      

      The proposal is to accept hints immediately after INSERT like Oracle does:

      INSERT /*+ hints */ INTO t PARTITIONED(year,month) SELECT * FROM src;
      

      Ideally, we would not accept hints in multiple places to avoid confusion and to reduce the code and testing burden. Ceasing to recognize the old hint placement is a backwards incompatible change.

      Attachments

        Issue Links

          Activity

            People

              jinchul Jin Chul Kim
              alex.behm Alexander Behm
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: