Skip to content

Support CREATE TABLE via SQL for infinite streams  #6251

@alamb

Description

@alamb

Is your feature request related to a problem or challenge?

Right now there is no (good) SQL syntax for creating a table via SQL that is marked as an infinite stream. The only way is to either create it programatically or (after #6235 is merged) some non user friendly option syntax (that is also purposely not documented)

I would like a real, user friendly, way to create such a table

Describe the solution you'd like

Instead of

CREATE external table t ...
OPTIONS('infinite_source' 'true')
LOCATION 'tests/data/empty.csv';

I would like some sort of explicit syntax like

CREATE external table t ...
INFINITE
LOCATION 'tests/data/empty.csv';

Describe alternatives you've considered

It would be good to do some research into what other systems (like Flink) that support streaming SQL call this concept / how they declare such tables

I am not sure INFINITE is the right syntax to choose

Additional context

If we can use one of the existing sqlparser-rs keywords (see https://docs.rs/sqlparser/0.33.0/sqlparser/keywords/enum.Keyword.html) that would be great

Otherwise we may need to add a new one

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