sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Attila Szabo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-3021) ClassWriter fails if a column name contains a backslash character
Date Fri, 07 Oct 2016 00:03:20 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15553618#comment-15553618

Attila Szabo commented on SQOOP-3021:

Hey [~vasas],

A very clean solution for a quite difficult to run into issue!
Many thanks for your contribution.


> ClassWriter fails if a column name contains a backslash character
> -----------------------------------------------------------------
>                 Key: SQOOP-3021
>                 URL: https://issues.apache.org/jira/browse/SQOOP-3021
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.6
>            Reporter: Szabolcs Vasas
>            Assignee: Szabolcs Vasas
>             Fix For: 1.4.7
>         Attachments: SQOOP-3021.patch
> The following Sqoop command fails with a javac error:
> {code}
> sqoop import --connect $MYCONN --username $MYUSER --password $MYPSWD --query "select
--target-dir regex_imp --delete-target-dir -m 1
> {code}
> The reason is that the REGEXP_REPLACE expression contains a backslash character which
does not get escaped in ClassWriter and an invalid string gets generated into the Java code.
> SQOOP-2864 solved this problem for the double quote character we need to generalize that

This message was sent by Atlassian JIRA

View raw message