-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
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