>From Ali Alsuliman <[email protected]>:

Attention is currently required from: Ian Maxon, Wail Alkowaileet, Glenn 
Galvizo.
Ali Alsuliman has posted comments on this change. ( 
https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17296 )

Change subject: [ASTERIXDB-3091][MTD] Make DROP TYPE derive correct names
......................................................................


Patch Set 6:

(3 comments)

File 
asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/ddl/drop-anonymous-nested-types/drop-anonymous-nested-types.002.ddl.sqlpp:

https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17296/comment/213f27ad_82f0d935
PS6, Line 25: }
I would also add another level of nesting, e.g. add two fields where one is a 
record and another is a list (make one of them nullable/missable)


https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17296/comment/16198919_9774617b
PS6, Line 32: }
Same here to cover all scenarios. add two fields where one is a record and 
another is a list (make one of them nullable/missable)


File 
asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/MetadataNode.java:

https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17296/comment/0c8402a0_30a84ece
PS6, Line 1499: if (subType.getTypeTag() == ATypeTag.UNION) {
              :                         nestedTypes.add(((AUnionType) 
subType).getActualType().getTypeName());
              :                     } else {
              :                         nestedTypes.add(subType.getTypeName());
              :                     }
we should only add the subtypes that are not BuiltinType:
for (IAType subType : subTypes) {
  IAType actualType = TypeComputeUtils.getActualType(subType);
  if (!(actualType instanceof BuiltinType)) {
    nestedTypes.add(actualType.getTypeName());
  }
}



--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17296
To unsubscribe, or for help writing mail filters, visit 
https://asterix-gerrit.ics.uci.edu/settings

Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Change-Id: I67f3ea5bbd9dd4f5f4b836e765f42ccc1d7b13ca
Gerrit-Change-Number: 17296
Gerrit-PatchSet: 6
Gerrit-Owner: Ian Maxon <[email protected]>
Gerrit-Reviewer: Ali Alsuliman <[email protected]>
Gerrit-Reviewer: Anon. E. Moose #1000171
Gerrit-Reviewer: Glenn Galvizo <[email protected]>
Gerrit-Reviewer: Ian Maxon <[email protected]>
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Wail Alkowaileet <[email protected]>
Gerrit-Attention: Ian Maxon <[email protected]>
Gerrit-Attention: Wail Alkowaileet <[email protected]>
Gerrit-Attention: Glenn Galvizo <[email protected]>
Gerrit-Comment-Date: Tue, 21 Mar 2023 04:26:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Reply via email to