CSV Format

    The CSV format allows to read and write CSV data based on an CSV schema. Currently, the CSV schema is derived from table schema.

    Here is an example to create a table using Kafka connector and CSV format.

    1. item_id BIGINT,
    2. category_id BIGINT,
    3. behavior STRING,
    4. ts TIMESTAMP(3)
    5. ) WITH (
    6. 'topic' = 'user_behavior',
    7. 'properties.bootstrap.servers' = 'localhost:9092',
    8. 'properties.group.id' = 'testGroup',
    9. 'format' = 'csv',
    10. 'csv.ignore-parse-errors' = 'true',
    11. )

    Flink CSV format uses to parse and generate CSV string.