-
Notifications
You must be signed in to change notification settings - Fork 181
[Calcite Engine] Support UDT for IP #3504
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
[Calcite Engine] Support UDT for IP #3504
Conversation
Signed-off-by: Heng Qian <qianheng@amazon.com>
Signed-off-by: Heng Qian <qianheng@amazon.com>
Signed-off-by: Heng Qian <qianheng@amazon.com>
| public interface ExprRelDataType extends RelDataType, RelDataTypeFamily { | ||
| ExprType getExprType(); | ||
| @Getter | ||
| public abstract class ExprRelDataType<T extends RelDataType> extends RelDataTypeImpl { |
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.
rename to AbstractExprRelDataType
| import org.opensearch.sql.calcite.utils.OpenSearchTypeFactory; | ||
| import org.opensearch.sql.calcite.utils.OpenSearchTypeFactory.ExprUDT; | ||
|
|
||
| public class ExprSqlType extends ExprRelDataType<BasicSqlType> { |
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.
Could you add some comments on ExprSqlType and ExprJavaType to explain why ExprDateType extends ExprSqlType but ExprIPType extends ExprJavaType
Signed-off-by: Heng Qian <qianheng@amazon.com>
|
CI on macos/linux failed because network error: |
not related failure in doctest |
| public ExprType getExprType() { | ||
| return udt.getExprCoreType(); | ||
| } |
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.
it is only for backward compatible, right? we will deprecated ExprType in fugure?
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.
Yeah, it doesn't need to get its correspond ExprType after deprecating ExprType. Maybe will return a UDT type name directly here.
* [Calcite Engine] Support UDT for IP Signed-off-by: Heng Qian <qianheng@amazon.com> * Fix IT Signed-off-by: Heng Qian <qianheng@amazon.com> * Refine Code Signed-off-by: Heng Qian <qianheng@amazon.com> * Refine Code Signed-off-by: Heng Qian <qianheng@amazon.com> * Address comments Signed-off-by: Heng Qian <qianheng@amazon.com> --------- Signed-off-by: Heng Qian <qianheng@amazon.com> Signed-off-by: xinyual <xinyual@amazon.com>
Description
Support UDT for IP, also do refactoring for ExprBasicSqlType.
Related Issues
Resolves #3395
Check List
--signoff.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.