Skip to content

CSV file, filter with list of columns #482

Open
@ypynda

Description

@ypynda

Hi team, and thanks for a great product!

I’m using FilePulseSourceConnector with CSVFilter type. My source files don’t have any headers.

When I have the following configuration, everything is working fine

  "filters.ParseCSVLine.type"       : "io.streamthoughts.kafka.connect.filepulse.filter.CSVFilter",
  "filters.ParseCSVLine.seperator"  : ",",
  "filters.ParseCSVLine.ignore.leading.whitespace": "true",
  "filters.ParseCSVLine.auto.generate.column.names": "true",

When I try to specify column name:type, I get unexpected results. It looks like the column list is sorted alphabetically and the column names don't match

  "filters.ParseCSVLine.type"       : "io.streamthoughts.kafka.connect.filepulse.filter.CSVFilter",
  "filters.ParseCSVLine.seperator"  : ",",
  "filters.ParseCSVLine.ignore.leading.whitespace": "true",
  "filters.ParseCSVLine.auto.generate.column.names": "false",
  "filters.ParseCSVLine.columns"    : "DataID1:string;TextField1:string; DataID2:string;TextField2:string;Date1:string;Date2:string;diffDate:string",

Can you please check it out?
Thank you

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions