Skip to content

Inconsistent formatting in errors for config options #7867

@qrilka

Description

@qrilka

Describe the bug

I was trying to set parquet writer option to 2.0 in datafusion-cli and got the following confusing error message:

❯ copy src_table to 'table.parquet' (format parquet,writer_version '2.0');
Invalid or Unsupported Configuration: Unknown or unsupported parquet writer version '2.0' valid options are '1.0' and '2.0'

It appears that I could use 2.0 without quotes and with double quotes like "2.0" but not with single quotes as the error message reports the values.
Probably the error message should use double quotes instead.

To Reproduce

Use incorrect value for writer_version option in COPY TO using parquet format

Expected behavior

Error message should not be confusing

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions