You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by Szabolcs Vasas <va...@gmail.com> on 2016/10/06 15:01:31 UTC

Review Request 52605: ClassWriter fails if a column name contains a backslash character

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52605/
-----------------------------------------------------------

Review request for Sqoop.


Bugs: SQOOP-3021
    https://issues.apache.org/jira/browse/SQOOP-3021


Repository: sqoop-trunk


Description
-------

SQOOP-2864 solved this problem for the double quote character I generalized that solution.


Diffs
-----

  src/java/org/apache/sqoop/orm/ClassWriter.java 9d91887 
  src/test/com/cloudera/sqoop/ThirdPartyTests.java 3103bd4 
  src/test/com/cloudera/sqoop/manager/MySQLTestUtils.java b5b9b6e 
  src/test/com/cloudera/sqoop/testutil/BaseSqoopTestCase.java 8dddd02 
  src/test/org/apache/sqoop/manager/mysql/MySqlColumnEscapeImportTest.java PRE-CREATION 
  src/test/org/apache/sqoop/manager/oracle/OracleColumnEscapeImportTest.java PRE-CREATION 

Diff: https://reviews.apache.org/r/52605/diff/


Testing
-------

I have added a new MySQL third party test to test the escaping of the double quote character in the column name and a new Oracle third party test to test the escaping of the backslash character.


Thanks,

Szabolcs Vasas


Re: Review Request 52605: ClassWriter fails if a column name contains a backslash character

Posted by Attila Szabo <as...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52605/#review151738
-----------------------------------------------------------


Ship it!




Ship It!

- Attila Szabo


On Oct. 6, 2016, 3:01 p.m., Szabolcs Vasas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52605/
> -----------------------------------------------------------
> 
> (Updated Oct. 6, 2016, 3:01 p.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Bugs: SQOOP-3021
>     https://issues.apache.org/jira/browse/SQOOP-3021
> 
> 
> Repository: sqoop-trunk
> 
> 
> Description
> -------
> 
> SQOOP-2864 solved this problem for the double quote character I generalized that solution.
> 
> 
> Diffs
> -----
> 
>   src/java/org/apache/sqoop/orm/ClassWriter.java 9d91887 
>   src/test/com/cloudera/sqoop/ThirdPartyTests.java 3103bd4 
>   src/test/com/cloudera/sqoop/manager/MySQLTestUtils.java b5b9b6e 
>   src/test/com/cloudera/sqoop/testutil/BaseSqoopTestCase.java 8dddd02 
>   src/test/org/apache/sqoop/manager/mysql/MySqlColumnEscapeImportTest.java PRE-CREATION 
>   src/test/org/apache/sqoop/manager/oracle/OracleColumnEscapeImportTest.java PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/52605/diff/
> 
> 
> Testing
> -------
> 
> I have added a new MySQL third party test to test the escaping of the double quote character in the column name and a new Oracle third party test to test the escaping of the backslash character.
> 
> 
> Thanks,
> 
> Szabolcs Vasas
> 
>


Re: Review Request 52605: ClassWriter fails if a column name contains a backslash character

Posted by Attila Szabo <as...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52605/#review151739
-----------------------------------------------------------



Very nice work Szabi!

Good idea to use an existing escaping solution from a truested open source library, and also you'd provided nice improvements around testing too.

- Attila Szabo


On Oct. 6, 2016, 3:01 p.m., Szabolcs Vasas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52605/
> -----------------------------------------------------------
> 
> (Updated Oct. 6, 2016, 3:01 p.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Bugs: SQOOP-3021
>     https://issues.apache.org/jira/browse/SQOOP-3021
> 
> 
> Repository: sqoop-trunk
> 
> 
> Description
> -------
> 
> SQOOP-2864 solved this problem for the double quote character I generalized that solution.
> 
> 
> Diffs
> -----
> 
>   src/java/org/apache/sqoop/orm/ClassWriter.java 9d91887 
>   src/test/com/cloudera/sqoop/ThirdPartyTests.java 3103bd4 
>   src/test/com/cloudera/sqoop/manager/MySQLTestUtils.java b5b9b6e 
>   src/test/com/cloudera/sqoop/testutil/BaseSqoopTestCase.java 8dddd02 
>   src/test/org/apache/sqoop/manager/mysql/MySqlColumnEscapeImportTest.java PRE-CREATION 
>   src/test/org/apache/sqoop/manager/oracle/OracleColumnEscapeImportTest.java PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/52605/diff/
> 
> 
> Testing
> -------
> 
> I have added a new MySQL third party test to test the escaping of the double quote character in the column name and a new Oracle third party test to test the escaping of the backslash character.
> 
> 
> Thanks,
> 
> Szabolcs Vasas
> 
>