I'm using embulk tools from CSV file (from the postgresql database) imported into bigquery.Found that some fields in the CSV file contains a newline(\n). Embulk tool plug-in can remove newline field?Or is there any way?
Asked
Active
Viewed 192 times
1 Answers
0
Maybe you can use embulk-filter-eval or embulk-filter-ruby_proc plugins. (embulk-filter-ruby_proc is better)
This is an example to replace TAB(\t) to "" with embulk-filter-eval plugin. https://gist.github.com/hiroyuki-sato/a1f6f718cee236645649
I'll show you more example if you tell me to input and output data example. (Create table, insert into statement, An output text example).
Note: Both plugins are written by JRuby. It's slower than Java plugin.

Hiroyuki Sato
- 51
- 3
-
According to your suggestion, my problem has been resolved.Thank you very much! – wangmin Sep 07 '16 at 09:12