-
Notifications
You must be signed in to change notification settings - Fork 407
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
[Improvement] [spark-connector] add IntervalYearType and IntervalDayType for spark connector #2596
Comments
@mchades , I checked spark types, Gravitino |
Gravitino |
I think we should understand how the |
Take
override val typeName: String = {
val startFieldName = fieldToString(startField)
val endFieldName = fieldToString(endField)
if (startFieldName == endFieldName) {
s"interval $startFieldName"
} else if (startField < endField) {
s"interval $startFieldName to $endFieldName"
} else {
throw QueryCompilationErrors.invalidDayTimeIntervalType(startFieldName, endFieldName)
}
} |
This issue should be considered together with #2373 |
seems we could do the transform like this, because the simpleString of |
we can convert it like this first. |
@charliecheng630 do you still like to work on this? |
@charliecheng630 , this issue is expected to be fix in 0.5 in next week, If you didn't have time, I'd like to work on this. |
@FANNG1 I probably won't make it in time to work on this issue. |
Spark don't support create table or load table with IntervalXXType column, not plan to support it unless a real need. |
What would you like to be improved?
you could refer #2484 add IntervalYearType and IntervalDayType support for spark connector, add transform logic in
SparkTypeConverter
and add test inTestSparkTypeConverter
How should we improve?
No response
The text was updated successfully, but these errors were encountered: