[NO ISSUE][IDX][COMP] Creating an open index on non-declared fields - user model changes: no - storage format changes: no - interface changes: no
Details: This patch is to fix creating an open index on non-declared fields. When compiling the CREATE INDEX DDL statement, it is assumed that all nested record fields will be of type ARecordType. However, for open indexes, any nested non-declared record field will be optional. In this case, the type will be AUnion(ARecordType) which results in type casting exceptions for certain situations. An example is: CREATE INDEX idx ON ds(a.b.c: int, a.b.d: string). Both a and b could have the type AUnion(ARecordType). This patch takes care of such cases.