cockroach
cockroach copied to clipboard
import: report error when specifying invalid options.
invalid options fields_terminated_by = '|', fields_enclosed_by='"' ; are not rejected.
For example:
IMPORT TBALE foo (a STRING, b STRING)
CSV DATA ('nodelocal:///file.csv')
WITH skip = '1', fields_terminated_by = '|', fields_enclosed_by='"' ;
pq: nodelocal:///file.csv: row 2: expected 2 fields, got 1
Other import formats must also report errors when specifying invalid options.
For example:
import into ... csv data(...) with data_as_binary_records