abdullah alamoudi has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/2928

Change subject: [NO ISSUE][COMP] Fix TypeComputeUtils.getResultType
......................................................................

[NO ISSUE][COMP] Fix TypeComputeUtils.getResultType

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
- Fix TypeComputeUtils.getResultType to either return
  unknowable or missable type.

Change-Id: Id881f2a5ad8134a3e86b2b08ce1acdc53c4948a2
---
M 
asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/TypeComputeUtils.java
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb 
refs/changes/28/2928/1

diff --git 
a/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/TypeComputeUtils.java
 
b/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/TypeComputeUtils.java
index 806235c..448ab4c 100644
--- 
a/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/TypeComputeUtils.java
+++ 
b/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/TypeComputeUtils.java
@@ -169,8 +169,7 @@
         IAType resultType = type;
         if ((category & NULLABLE) != 0 || (category & NULL) != 0) {
             resultType = AUnionType.createUnknownableType(resultType);
-        }
-        if ((category & MISSABLE) != 0 || (category & MISSING) != 0) {
+        } else if ((category & MISSABLE) != 0 || (category & MISSING) != 0) {
             resultType = AUnionType.createMissableType(resultType);
         }
         return resultType;

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/2928
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id881f2a5ad8134a3e86b2b08ce1acdc53c4948a2
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi <bamou...@gmail.com>

Reply via email to