Skip to content

Support SET command #4067

@waitingkuo

Description

@waitingkuo

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and why for this feature, in addition to the what)

a SET command to change the value in config_options

Describe the solution you'd like
A clear and concise description of what you want to happen.

following what postgresql has except [LOCAL]
https://www.postgresql.org/docs/current/sql-set.html

assignment operator should support both TO and =
value should support single quoted string / number / bool / non space separate string

SET [VARIABLE] [TO | =] [VALUE | 'VALUE']

e.g.

set datafusion.execution.batch_size = 1;
set datafusion.execution.coalesce_batches to 'false';

support alias TIME ZONE and TIMEZONE (same as postgrseql https://www.postgresql.org/docs/current/sql-set.html)

set time zone = 1;

note that this should return error for now as discussed in #3148 (comment)
cc @avantgardnerio @alamb

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions