While on VMware Tanzu Greenplum 6.12.1, you are testing external table access and the external table was created with the header option:
DROP EXTERNAL TABLE IF EXISTS support.myexternaltable ;
CREATE EXTERNAL TABLE support.myexternaltable
(
Filename character varying(32),
CatType integer,
Data character varying(120)
)
LOCATION ('gpfdist://etl:8080/withHeader.csv')
FORMAT 'csv' (header delimiter ',' null '' escape '"' quote '"')
ENCODING 'UTF8';
select * from support.myexternaltable limit 10;
When selecting from a table, you receive the following error:
ERROR: invalid input syntax for integer: "CatType" (seg3 slice1 172.1.1.1:1173 pid=577818)
From this error we can see a "
CatType" is also the name of the second column.