Skip to content

csv_reader declaration to include columns with spaces #6

@opustecnica

Description

@opustecnica

While in agreement that spaces should never be used in a column name, at times, when dealing with externally sourced csvs, spaces are indeed present.

When attempting to create a virtual table that includes spaces, a 'vtable constructor failed: iavm_reader' error is returned.

e.g.
CREATE VIRTUAL TABLE temp.iavm_reader using csv_reader(plugin, [plugin name])

Is there a way to work around this?

PS
When creating a virtual table directly there are no issues with the header.

e.g.
CREATE VIRTUAL TABLE temp.iavm_csv using csv(filename=iavm.csv)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions