cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

import: report error when specifying invalid options.

Open miretskiy opened this issue 6 years ago • 0 comments

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

miretskiy avatar Mar 13 '20 17:03 miretskiy