-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Support CREATE TABLE via SQL for infinite streams #6352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @ozankabak and @mustafasrepo |
| /// File compression type (GZIP, BZIP2, XZ, ZSTD) | ||
| pub file_compression_type: CompressionTypeVariant, | ||
| /// Whether the table is an infinite streams | ||
| pub unbounded: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, fn hash<H: Hasher>(&self, state: &mut H) function should use self.unbounded during hashing also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, I miss that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
| self.parser.expect_keyword(Keyword::ROW)?; | ||
| ensure_not_set(&builder.has_header, "WITH HEADER ROW")?; | ||
| builder.has_header = Some(true); | ||
| if let Some(keyword) = self.parser.parse_one_of_keywords(&[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup!.
|
This PR is LGTM!. Thanks @aprimadi for this work. |
After unbounded information is used in hash function I will approve this PR. Someone may see this PR approved, then may merge this, before that feature is addressed.
|
Thank you for the review @mustafasrepo |
|
Thanks @aprimadi and @mustafasrepo ! |
|
🤔 github seems to be acting up (not merging this PR). |
|
@alamb is it supposed to merge automatically? |
Which issue does this PR close?
Closes #6251
Rationale for this change
N/A
What changes are included in this PR?
CREATE UNBOUNDED EXTERNAL TABLE ...statementAre these changes tested?
Yes
Are there any user-facing changes?
No API change. Add more SQL functionality.