Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ public static RelDataType convertSchema(Table table) {
//reason: We don't need metadata fields in the substrait plan
// fieldTypes.putAll(table.getReservedFieldTypes());
for (Entry<String, ExprType> entry : fieldTypes.entrySet()) {
// Skip STRUCT type fields (object fields) as they cannot be queried directly
// Only their nested fields (which are already flattened) should be in the schema
if (entry.getValue() == ExprCoreType.STRUCT) {
continue;
}
fieldNameList.add(entry.getKey());
typeList.add(OpenSearchTypeFactory.convertExprTypeToRelDataType(entry.getValue()));
}
Expand Down
Loading