Skip to content

Commit 35b9f2b

Browse files
committed
bq: add secret datetime fields
1 parent 64f752c commit 35b9f2b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/dialect/keywords.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ define_keywords!(
158158
CYCLE,
159159
D,
160160
DATE,
161+
DATETIME,
161162
DAY,
162163
DAYOFMONTH,
163164
DAYOFWEEK,

src/parser.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ impl<'a> Parser<'a> {
718718
Keyword::DAYOFYEAR | Keyword::YEARDAY | Keyword::DOY | Keyword::DY => {
719719
Ok(DateTimeField::DayOfYear)
720720
}
721+
Keyword::DATE => Ok(DateTimeField::Other("DATE")),
722+
Keyword::DATETIME => Ok(DateTimeField::Other("DATETIME")),
721723
Keyword::HOUR => Ok(DateTimeField::Hour),
722724
Keyword::MINUTE => Ok(DateTimeField::Minute),
723725
Keyword::SECOND => Ok(DateTimeField::Second),

0 commit comments

Comments
 (0)