Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-3075

Simplify Unicode character support in source files (introduced by SQOOP-3074) by defining explicit locales instead of using EscapeUtils

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Although SQOOP-3074 achieved that Sqoop won't fail anymore with special characters even if the locale on the caller system is not UTF-8, there's a simpler solution to do the same thing, by tuning the compiler + classwriter itself (by adding explicit encodings) instead of using the StringEscapeUtils#escapeJava mechanism.

      This solution seems simpler, and won't introduce any confusion around generation of Java identifiers.

        Attachments

        1. SQOOP-3075.patch
          4 kB
          Attila Szabo

          Activity

            People

            • Assignee:
              maugli Attila Szabo
              Reporter:
              maugli Attila Szabo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: