mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Fix typos (#1785)
This commit is contained in:
parent
be98b30eb3
commit
95d7b86da5
3 changed files with 3 additions and 3 deletions
|
@ -310,7 +310,7 @@ impl Dialect for SnowflakeDialect {
|
||||||
}
|
}
|
||||||
|
|
||||||
// `FETCH` can be considered an alias as long as it's not followed by `FIRST`` or `NEXT`
|
// `FETCH` can be considered an alias as long as it's not followed by `FIRST`` or `NEXT`
|
||||||
// which would give it a different meanins, for example: `SELECT 1 FETCH FIRST 10 ROWS` - not an alias
|
// which would give it a different meanings, for example: `SELECT 1 FETCH FIRST 10 ROWS` - not an alias
|
||||||
Keyword::FETCH
|
Keyword::FETCH
|
||||||
if parser.peek_keyword(Keyword::FIRST) || parser.peek_keyword(Keyword::NEXT) =>
|
if parser.peek_keyword(Keyword::FIRST) || parser.peek_keyword(Keyword::NEXT) =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1084,7 +1084,7 @@ pub const RESERVED_FOR_COLUMN_ALIAS: &[Keyword] = &[
|
||||||
Keyword::END,
|
Keyword::END,
|
||||||
];
|
];
|
||||||
|
|
||||||
// Global list of reserved keywords alloweed after FROM.
|
// Global list of reserved keywords allowed after FROM.
|
||||||
// Parser should call Dialect::get_reserved_keyword_after_from
|
// Parser should call Dialect::get_reserved_keyword_after_from
|
||||||
// to allow for each dialect to customize the list.
|
// to allow for each dialect to customize the list.
|
||||||
pub const RESERVED_FOR_TABLE_FACTOR: &[Keyword] = &[
|
pub const RESERVED_FOR_TABLE_FACTOR: &[Keyword] = &[
|
||||||
|
|
|
@ -14528,7 +14528,7 @@ fn test_geometric_unary_operators() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_geomtery_type() {
|
fn test_geometry_type() {
|
||||||
let sql = "point '1,2'";
|
let sql = "point '1,2'";
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
all_dialects_where(|d| d.supports_geometric_types()).verified_expr(sql),
|
all_dialects_where(|d| d.supports_geometric_types()).verified_expr(sql),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue