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

Enable UTF-8 support in query string by default

    Details

      Description

      Now saffron.propertries file will be added into Drill conf directory which will define default encoding used to parse query string.
      Content:

      saffron.default.charset=UTF-16LE
      saffron.default.nationalcharset=UTF-16LE
      saffron.default.collation.name=UTF-16LE$en_US 
      

      Another option to override saffron properties is to set them as system options. This will take higher priority then saffron.properties file.
      Add to drill-env.sh:

      DRILL_JAVA_OPTS="$DRILL_JAVA_OPTS -Dsaffron.default.charset=ISO-8859-1 -Dsaffron.default.nationalcharset=ISO-8859-1 -Dsaffron.default.collation.name=ISO-8859-1\$en_US"
      

      NB!: the symbols $en_US must be preceded by \ character if one inserts the properties' row to drill-env.sh file, otherwise drill will stuck -> -Dsaffron.default.collation.name=ISO-8859-1\$en_US

      This information should be also documented, probably in https://drill.apache.org/docs/data-type-conversion/.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arina Arina Ielchiieva
                Reporter:
                arina Arina Ielchiieva
                Reviewer:
                Paul Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: