-
Notifications
You must be signed in to change notification settings - Fork 142
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 flint date type support #1699
add flint date type support #1699
Conversation
Signed-off-by: Peng Huo <penghuo@gmail.com>
Codecov Report
@@ Coverage Diff @@
## feature/flint #1699 +/- ##
================================================
Coverage 97.19% 97.19%
Complexity 4107 4107
================================================
Files 371 371
Lines 10464 10464
Branches 706 706
================================================
Hits 10170 10170
Misses 287 287
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
@@ -86,16 +83,22 @@ object FlintSparkConf { | |||
val OPTIMIZER_RULE_ENABLED = FlintConfig("spark.flint.optimizer.enabled") | |||
.doc("Enable Flint optimizer rule for query rewrite with Flint index") | |||
.createWithDefault("true") | |||
|
|||
val TIME_ZONE = FlintConfig("timeZone") |
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.
Is this a new Flint config or it's same as spark.sql.session.timeZone?
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.
good point. Yes it is same. remove the timezone and fetch from SQLConf.
|
||
/** | ||
* Constructs a parser for a given schema that translates a json string to an [[InternalRow]]. | ||
* copy from spark {@link JacksonParser}. |
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.
just wonder do we copy this class to tweak something?
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 comments in code about why copy it.
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.
In Flint Storage, timestamp epoch value is in milliseconds. change parser.getLongValue * 1000000L to parser* .getLongValue * 1000L
Signed-off-by: Peng Huo <penghuo@gmail.com>
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.