-
Notifications
You must be signed in to change notification settings - Fork 622
Filter on 'char' field was error while import data by copy #1465
Comments
I reproduce the issue @happyjoblzp you faced, and analyze the internals of Peloton to solve the issue. The basic mechanism for every char-type value is to add '\0' (00000000 in a bitstring) at the end of string value. However, if we scan tables from CSV file (see In this case, if we read a varchar value with increased length by one, i.e., read five characters instead of four character, scanned char value becomes just a char value + its delimiter. For instance, typical TPC-H and TPC-DS dataset generators use '|' as their column delimiter. I create PR #1490 for solving the issue, and thus please refer the simple solution. |
The text was updated successfully, but these errors were encountered: