Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15583

CTAS query removes leading underscore from column names with CBO

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • CBO
    • None

    Description

      L209 in PlanModifierForASTConv.java:

            if (colAlias.startsWith("_")) {
              colAlias = colAlias.substring(1);
              colAlias = getNewColAlias(newSelAliases, colAlias);
            }
      

      I would like to explore if we can just remove this limitation.

      For instance, due to this issue, when we create a table with Druid storage handler, we need to add an additional underscore for column names as Druid is expecting columns with a certain name.

      Attachments

        1. HIVE-15583.patch
          0.9 kB
          jcamachorodriguez
        2. HIVE-15583.01.patch
          116 kB
          jcamachorodriguez

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: