04-09-2018 08:17 AM - edited 04-09-2018 08:18 AM
In a Sqoop step, if I paste "a, b, c" into the arguments, it will automatically create 3 arguments in UI.
Cool feature, but only until you use SQL..
I have a rather complex query and it not only slices the query by white spaces, creating meaningless arguments, but also overwrites the preexisting ones.
In CDH 5.10.1 this feature wasn't present, but I experience it in 5.13.0.
Any ideas how to workaround this? I tried to replace white characters with "\040" but that did not work.
The only idea I've got is to export the workflow to JSON, edit and import back, which is quite unconfortable. Better still than edit the SQL manually.
Thanks!
05-04-2018 12:32 AM
05-14-2018 06:11 AM
Hello Eric,
1. Just create a blank Sqoop step in a new workflow.
2. Then, add any number of arguments to it.
3. Paste the following string to any of the arguments: "a b c"
4. You'll see previous args were overwritten by a b and c.
Thanks
05-15-2018 12:24 AM
OK, I see what you mean.
I have tested and confirm that if you paste it, it will expand them into arguments. But looks like if you type in manually, it should be fine, see below screenshot:
How long is your argument string? If not too long, maybe just type in manually for now.