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
add keyword NANOSECOND #749
Conversation
NANOSECOND, | ||
NANOSECONDS, |
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.
add new keywords (follows the ascending order)
Nanosecond, | ||
Nanoseconds, |
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.
add new DateTimeField
s
verified_stmt("SELECT EXTRACT(MILLISECOND FROM d)"); | ||
verified_stmt("SELECT EXTRACT(MICROSECOND FROM d)"); | ||
verified_stmt("SELECT EXTRACT(NANOSECOND FROM d)"); |
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.
add test cases
Pull Request Test Coverage Report for Build 3628501076
💛 - Coveralls |
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.
Thanks @waitingkuo
close #748
AST: [Query(Query { with: None, body: Select(Select { distinct: false, top: None, projection: [UnnamedExpr(Extract {
field: Nanosecond
, expr: Function(Function { name: ObjectName([Ident { value: "NOW", quote_style: None }]), args: [], over: None, distinct: false, special: false }) })], into: None, from: [], lateral_views: [], selection: None, group_by: [], cluster_by: [], distribute_by: [], sort_by: [], having: None, qualify: None }), order_by: [], limit: None, offset: None, fetch: None, lock: None })]