Add support for TABLESAMPLE (#1580)

This commit is contained in:
Yoav Cohen 2024-12-15 10:40:25 +01:00 committed by GitHub
parent 7bc6ddb8fb
commit 316bb14135
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 546 additions and 458 deletions

View file

@ -346,6 +346,21 @@ pub fn table(name: impl Into<String>) -> TableFactor {
partitions: vec![],
with_ordinality: false,
json_path: None,
sample: None,
}
}
pub fn table_from_name(name: ObjectName) -> TableFactor {
TableFactor::Table {
name,
alias: None,
args: None,
with_hints: vec![],
version: None,
partitions: vec![],
with_ordinality: false,
json_path: None,
sample: None,
}
}
@ -362,6 +377,7 @@ pub fn table_with_alias(name: impl Into<String>, alias: impl Into<String>) -> Ta
partitions: vec![],
with_ordinality: false,
json_path: None,
sample: None,
}
}