Change the compilation related Exception
- Change the compilation related Exception from AsterixException to CompilationException
to meet requirement of the new exception handling proposal.
- This is an 1:1 string conversion and no errorcode handling part is included.
That needs to be done gradually when the related part is changed.
Change-Id: I3ff2bc3b70ad78e53a19ad94d98d17a4469ca4e1
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1437
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Yingyi Bu <buyingyi@gmail.com>
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
index 2ee3a2c..ab55c89 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
@@ -3438,13 +3438,13 @@
<test-case FilePath="open-index-enforced/error-checking">
<compilation-unit name="index-type-collision">
<output-dir compare="Text">index-type-collision</output-dir>
- <expected-error>org.apache.asterix.common.exceptions.AsterixException: Cannot create index testIdx2 , enforced index testIdx1 on field "[value]" is already defined with type "[int32]"</expected-error>
+ <expected-error>Cannot create index testIdx2 , enforced index testIdx1 on field "[value]" is already defined with type "[int32]"</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="open-index-enforced/error-checking">
<compilation-unit name="index-type-promotion-collision">
<output-dir compare="Text">index-type-promotion-collision</output-dir>
- <expected-error>org.apache.asterix.common.exceptions.AsterixException: Cannot create index testIdx2 , enforced index testIdx1 on field "[value]" is already defined with type "[int64]"</expected-error>
+ <expected-error>Cannot create index testIdx2 , enforced index testIdx1 on field "[value]" is already defined with type "[int64]"</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="open-index-enforced/error-checking">
@@ -6298,7 +6298,7 @@
<test-case FilePath="cross-dataverse">
<compilation-unit name="cross-dv13">
<output-dir compare="Text">cross-dv13</output-dir>
- <expected-error>Error: Recursive invocation testdv2.fun03@0</expected-error>
+ <expected-error>Recursive invocation testdv2.fun03@0</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="cross-dataverse">
@@ -6314,7 +6314,7 @@
<test-case FilePath="cross-dataverse">
<compilation-unit name="cross-dv16">
<output-dir compare="Text">cross-dv16</output-dir>
- <expected-error>Error: Recursive invocation testdv1.fun04@0</expected-error>
+ <expected-error>Recursive invocation testdv1.fun04@0</expected-error>
</compilation-unit>
</test-case>
<!--NotImplementedException: No binary comparator factory implemented for type RECORD.
@@ -6353,19 +6353,19 @@
<test-case FilePath="cross-dataverse">
<compilation-unit name="drop-type-used-elsewhere">
<output-dir compare="Text">drop-type-used-elsewhere</output-dir>
- <expected-error>Error: Cannot drop type a.a being used by dataset b.b1</expected-error>
+ <expected-error>Cannot drop type a.a being used by dataset b.b1</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="cross-dataverse">
<compilation-unit name="drop-type-used-here-dataset">
<output-dir compare="Text">drop-type-used-here-dataset</output-dir>
- <expected-error>Error: Cannot drop type c.a being used by dataset c.a1</expected-error>
+ <expected-error>Cannot drop type c.a being used by dataset c.a1</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="cross-dataverse">
<compilation-unit name="drop-type-used-here-type">
<output-dir compare="Text">drop-type-used-here-type</output-dir>
- <expected-error>Error: Cannot drop type c.a being used by type c.b</expected-error>
+ <expected-error>Cannot drop type c.a being used by type c.b</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="cross-dataverse">
@@ -6403,7 +6403,7 @@
<test-case FilePath="user-defined-functions">
<compilation-unit name="query-issue455">
<output-dir compare="Text">query-issue455</output-dir>
- <expected-error>Error: function test.printName@0 is not defined</expected-error>
+ <expected-error>function test.printName@0 is not defined</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="user-defined-functions">
@@ -6547,7 +6547,7 @@
<test-case FilePath="user-defined-functions">
<compilation-unit name="udf26"><!-- Error not propagated properly -->
<output-dir compare="Text">udf26</output-dir>
- <expected-error>Error: function test.needs_f1@1 depends upon function test.f1@0 which is undefined</expected-error>
+ <expected-error>function test.needs_f1@1 depends upon function test.f1@0 which is undefined</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="user-defined-functions"><!-- Exception is never thrown!! -->
@@ -6568,7 +6568,7 @@
<test-case FilePath="user-defined-functions">
<compilation-unit name="udf30">
<output-dir compare="Text">udf30</output-dir>
- <expected-error>Error: can't find variable $y</expected-error>
+ <expected-error>can't find variable $y</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="user-defined-functions">
@@ -6579,7 +6579,7 @@
<test-case FilePath="user-defined-functions">
<compilation-unit name="f01">
<output-dir compare="Text">f01</output-dir>
- <expected-error>Error: function test.int8@0 is not defined</expected-error>
+ <expected-error>function test.int8@0 is not defined</expected-error>
</compilation-unit>
</test-case>
<test-case FilePath="user-defined-functions">