SQOOP-749: Exports Using Stored Procedures (Functions)
Review Request #8806 - Created Jan. 3, 2013 and updated
It'd be useful if you could use stored procedures (or functions) to insert data - currently you can only use insert or update statements (or upsert / merges, depending on the SqlManager you're using). This would help sqoop adoption / migration into environments which have existing, SQL-based data import workflows. The attached patch adds a --call argument to the export tool that can be used in place of --table. Note that this patch depends on HSQLDB 2.x, whereas trunk currently depends on 1.8, so it can't be committed until that situation's resolved (see SQOOP-519 and linked tickets).
I've added a subclass of TestExport to make sure all the usual export functionality works. I've also used it on live data exporting to postgres.