[ASTERIXDB-2950][COMP] Improve error message on type mismatch
authorDmitry Lychagin <dmitry.lychagin@couchbase.com>
Mon, 17 Jan 2022 22:19:11 +0000 (14:19 -0800)
committerDmitry Lychagin <dmitry.lychagin@couchbase.com>
Tue, 18 Jan 2022 00:21:29 +0000 (00:21 +0000)
commit719a3a6068d6206decefa0d110e852992a085b7b
treeabc21525e534d4d5d2ec8286caa1200b8041671c
parent7a0f99b85cddf3ac1a157bcfe3ef1045683f3f90
[ASTERIXDB-2950][COMP] Improve error message on type mismatch

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

Details:
- Change NonTaggedGetItemResultType.getResultType() to
  raise ASX1002 instead of failng with ClassCastException

Change-Id: Ie5ce017b4927ea08e102af096a5d2b69e8bef550
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/14844
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/query-ASTERIXDB-2950/query-ASTERIXDB-2950.1.query.sqlpp [new file with mode: 0644]
asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/query-ASTERIXDB-2950/query-ASTERIXDB-2950.2.query.sqlpp [new file with mode: 0644]
asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/NonTaggedGetItemResultType.java