[ https://issues.apache.org/jira/browse/SQOOP-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15553713#comment-15553713
]
Hudson commented on SQOOP-3021:
-------------------------------
FAILURE: Integrated in Jenkins build Sqoop-hadoop23 #1263 (See [https://builds.apache.org/job/Sqoop-hadoop23/1263/])
SQOOP-3021: ClassWriter fails if a column name contains a backslash (maugli: [https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=0f13c474bf91f6609b9bdd7a1aa25b250f07e398])
* (add) src/test/org/apache/sqoop/manager/mysql/MySqlColumnEscapeImportTest.java
* (edit) src/test/com/cloudera/sqoop/ThirdPartyTests.java
* (add) src/test/org/apache/sqoop/manager/oracle/OracleColumnEscapeImportTest.java
* (edit) src/java/org/apache/sqoop/orm/ClassWriter.java
* (edit) src/test/com/cloudera/sqoop/testutil/BaseSqoopTestCase.java
* (edit) src/test/com/cloudera/sqoop/manager/MySQLTestUtils.java
> 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
C1_INT,C4_VARCHAR20, REGEXP_REPLACE(TRIM(C4_VARCHAR20),'\:','!') from T1_IMPORT WHERE \$CONDITIONS"
--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
solution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
|