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

Support `||` as "concat operator" for varchar inputs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Future
    • None
    • None

    Description

      For example, the query:
      select n_nationkey || ' + ' || n_name || ' = ' as CONCAT, n_nationkey, ' + ' as PLUS, n_name from cp.`tpch/nation.parquet`

      should print out
      CONCAT n_nationkey PLUS n_name
      0 + ALGERIA = 0 + ALGERIA
      1 + ARGENTINA = 1 + ARGENTINA
      2 + BRAZIL = 2 + BRAZIL
      3 + CANADA = 3 + CANADA
      ... ... ... (rows/records are omitted due to space limitation)

      Attachments

        1. DRILL-2054.1.patch
          8 kB
          Sean Hsuan-Yi Chu

        Issue Links

          Activity

            People

              seanhychu Sean Hsuan-Yi Chu
              seanhychu Sean Hsuan-Yi Chu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: