Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
If you have an field called timestamp and in addition want to read the timestamp from the metadata:
CREATE TABLE animal_sightings_with_metadata (
`timestamp` TIMESTAMP(3),
`name` STRING,
`country` STRING,
`number` INT,
`append_time` TIMESTAMP(3) METADATA FROM 'timestamp',
`partition` BIGINT METADATA VIRTUAL,
`offset` BIGINT METADATA VIRTUAL,
`headers` MAP<STRING, BYTES> METADATA,
`timestamp-type` STRING METADATA,
`leader-epoch` INT METADATA,
`topic` STRING METADATA
)
This gives:
[ERROR] Could not execute SQL statement. Reason: org.apache.flink.table.api.ValidationException: Field names must be unique. Found duplicates: [timestamp]
Attachments
Issue Links
- links to