You can accomplish what you want if you manually specify the target table schema with the columns that you need. Then when you use the transfer service you need to set the option ignore_unknown_values
to true.
Let's say I have a CSV on Google Cloud Storage with the following data:
"First"|"Second"|"Ignored"
"Third"|"Fourth"|"Ignored"
Then I have the table with the name test
and schema like:
first_col STRING NULLABLE
second_col STRING NULLABLE
After configuring the transfer service with web UI and checking the checkbox "Ignore unknown values" I get the following data in the table:
first_col |
second_col |
First |
Second |
Third |
Fourth |
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…