You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by Cheolsoo Park <ch...@cloudera.com> on 2012/06/17 06:36:50 UTC

Review Request: SQOOP-503 --columns argument support for export

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

Review request for Sqoop, Bilung Lee and Jarek Cecho.


Description
-------

Currently, Sqoop complains about --columns option if used with export:

ERROR tool.BaseSqoopTool: Error parsing arguments for export:
ERROR tool.BaseSqoopTool: Unrecognized argument: --columns

Adding the --columns option to ExportTool fixes the problem.


This addresses bug SQOOP-503.
    https://issues.apache.org/jira/browse/SQOOP-503


Diffs
-----

  /src/java/org/apache/sqoop/tool/ExportTool.java 1351025 
  /src/test/com/cloudera/sqoop/TestExport.java 1351025 

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


Testing
-------

1) Added a unit test to the TestExport suite as follows:

- Create a table that has col0, col1, and col2.
- Generate an input file that only contains col0 and col2.
- Run export with --columns col0,col2.
- Verify col0 and col2 are exported to the DB.
- Verify col1 remains null in the DB.

2) Ran ant test, ant test -Dthridpary=true, and ant checkstyle.


Thanks,

Cheolsoo Park


Re: Review Request: SQOOP-503 --columns argument support for export

Posted by Jarek Cecho <ja...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/5342/#review8308
-----------------------------------------------------------

Ship it!


Ship It!

- Jarek Cecho


On June 17, 2012, 4:36 a.m., Cheolsoo Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/5342/
> -----------------------------------------------------------
> 
> (Updated June 17, 2012, 4:36 a.m.)
> 
> 
> Review request for Sqoop, Bilung Lee and Jarek Cecho.
> 
> 
> Description
> -------
> 
> Currently, Sqoop complains about --columns option if used with export:
> 
> ERROR tool.BaseSqoopTool: Error parsing arguments for export:
> ERROR tool.BaseSqoopTool: Unrecognized argument: --columns
> 
> Adding the --columns option to ExportTool fixes the problem.
> 
> 
> This addresses bug SQOOP-503.
>     https://issues.apache.org/jira/browse/SQOOP-503
> 
> 
> Diffs
> -----
> 
>   /src/java/org/apache/sqoop/tool/ExportTool.java 1351025 
>   /src/test/com/cloudera/sqoop/TestExport.java 1351025 
> 
> Diff: https://reviews.apache.org/r/5342/diff/
> 
> 
> Testing
> -------
> 
> 1) Added a unit test to the TestExport suite as follows:
> 
> - Create a table that has col0, col1, and col2.
> - Generate an input file that only contains col0 and col2.
> - Run export with --columns col0,col2.
> - Verify col0 and col2 are exported to the DB.
> - Verify col1 remains null in the DB.
> 
> 2) Ran ant test, ant test -Dthridpary=true, and ant checkstyle.
> 
> 
> Thanks,
> 
> Cheolsoo Park
> 
>