generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Labels
PPLPiped processing languagePiped processing languagecalcitecalcite migration releatedcalcite migration releatedenhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem?
Currently all arrays are created with type array<any>.
Reason: in OpenSearchTypeFactory.java#L176:
public static RelDataType convertExprTypeToRelDataType(ExprType fieldType, boolean nullable)
...
case ARRAY:
return TYPE_FACTORY.createArrayType(
TYPE_FACTORY.createSqlType(SqlTypeName.ANY, nullable), -1);
This raises a number of problem since we can not infer element types. E.g. when expanding an array, we can't know the element type until runtime.
What solution would you like?
Support creating array types with known element types.
What alternatives have you considered?
Not yet
Do you have any additional context?
Metadata
Metadata
Assignees
Labels
PPLPiped processing languagePiped processing languagecalcitecalcite migration releatedcalcite migration releatedenhancementNew feature or requestNew feature or request
Type
Projects
Status
Not Started