-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 support for DATE inputs to date extraction functions #627
Conversation
Functions added : year, month, day, dow, doy, hour, minute, second, millisecond
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.
@aditi-pandit Looks good. Minor comments below.
Also add an optimization for date_trunc for Date when the unit is days.
Thanks Masha. Addressed the review comments in the latest patch. |
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.
@aditi-pandit Thank you, Aditi.
@mbasmanova has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@aditi-pandit Aditi, the internal linter raised a few warnings. Would you take a look?
|
Thanks Masha. Have fixed these warnings. |
@mbasmanova has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Super clean! I love how the new simple function framework is shaping up :) Thanks Aditi! |
@aditi-pandit I still get this warning:
|
As per https://clang.llvm.org/extra/clang-tidy/checks/misc-definitions-in-headers.html inline constexpr should fix the violation
@mbasmanova has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
As per https://clang.llvm.org/extra/clang-tidy/checks/misc-definitions-in-headers.html making this inline should fix the violation. Maybe we should add these flags in the invocation of clang-tidy in the format-fix scripts in velox. If you give me a list of these I could add them. |
Indeed. It would be nice to align linter that runs in GitHub with internal one. @mshang816 Michael, any idea how we could approach this? CC: @pedroerp |
@mbasmanova merged this pull request in a9ecd09. |
* fix codestyle
year, month, day, dow, doy, hour, minute, second, millisecond.