summaryrefslogtreecommitdiffstats
path: root/systemtest/testdata/testset2
diff options
context:
space:
mode:
Diffstat (limited to 'systemtest/testdata/testset2')
-rw-r--r--systemtest/testdata/testset2/const1.ql5
-rw-r--r--systemtest/testdata/testset2/const1.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const1.ql.out16
-rw-r--r--systemtest/testdata/testset2/const10.ql5
-rw-r--r--systemtest/testdata/testset2/const10.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const10.ql.out16
-rw-r--r--systemtest/testdata/testset2/const11.ql5
-rw-r--r--systemtest/testdata/testset2/const11.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const11.ql.out16
-rw-r--r--systemtest/testdata/testset2/const2.ql5
-rw-r--r--systemtest/testdata/testset2/const2.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const2.ql.out16
-rw-r--r--systemtest/testdata/testset2/const3.ql5
-rw-r--r--systemtest/testdata/testset2/const3.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const3.ql.out16
-rw-r--r--systemtest/testdata/testset2/const4.ql5
-rw-r--r--systemtest/testdata/testset2/const4.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const4.ql.out16
-rw-r--r--systemtest/testdata/testset2/const5.ql5
-rw-r--r--systemtest/testdata/testset2/const5.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const5.ql.out16
-rw-r--r--systemtest/testdata/testset2/const6.ql5
-rw-r--r--systemtest/testdata/testset2/const6.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const6.ql.out16
-rw-r--r--systemtest/testdata/testset2/const7.ql5
-rw-r--r--systemtest/testdata/testset2/const7.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const7.ql.out16
-rw-r--r--systemtest/testdata/testset2/const8.ql5
-rw-r--r--systemtest/testdata/testset2/const8.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const8.ql.out16
-rw-r--r--systemtest/testdata/testset2/const9.ql5
-rw-r--r--systemtest/testdata/testset2/const9.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/const9.ql.out16
-rw-r--r--systemtest/testdata/testset2/constmdd.ql5
-rw-r--r--systemtest/testdata/testset2/constmdd.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/constmdd.ql.out16
-rw-r--r--systemtest/testdata/testset2/oid5.ql6
-rw-r--r--systemtest/testdata/testset2/oid5.ql.java.out0
-rw-r--r--systemtest/testdata/testset2/oid5.ql.out4
-rw-r--r--systemtest/testdata/testset2/oid6.ql6
-rw-r--r--systemtest/testdata/testset2/oid6.ql.java.out15
-rw-r--r--systemtest/testdata/testset2/oid6.ql.out44
42 files changed, 507 insertions, 0 deletions
diff --git a/systemtest/testdata/testset2/const1.ql b/systemtest/testdata/testset2/const1.ql
new file mode 100644
index 0000000..54f1f5d
--- /dev/null
+++ b/systemtest/testdata/testset2/const1.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <long, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a * 1
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const1.ql.java.out b/systemtest/testdata/testset2/const1.ql.java.out
new file mode 100644
index 0000000..c12f763
--- /dev/null
+++ b/systemtest/testdata/testset2/const1.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayInteger
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:177,0:177]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 4
+ Data format...........: 0
+ Data size (bytes).....: 60
+ 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 0 0 0 2 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const1.ql.out b/systemtest/testdata/testset2/const1.ql.out
new file mode 100644
index 0000000..939573c
--- /dev/null
+++ b/systemtest/testdata/testset2/const1.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <long, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <long, [-2:2,-1:1]>
+ Type Schema...........: marray< long >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: long
+ Base Type Length......: 4
+ Data format.......... : Array
+ Data size (bytes).... : 60
+ 2 2 2 2 2
+ 2 2 2 2 2
+ 2 2 2 2 2
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const10.ql b/systemtest/testdata/testset2/const10.ql
new file mode 100644
index 0000000..b90d539
--- /dev/null
+++ b/systemtest/testdata/testset2/const10.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <long, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a - -2
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const10.ql.java.out b/systemtest/testdata/testset2/const10.ql.java.out
new file mode 100644
index 0000000..29e925f
--- /dev/null
+++ b/systemtest/testdata/testset2/const10.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayInteger
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:177,0:177]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 4
+ Data format...........: 0
+ Data size (bytes).....: 60
+ 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const10.ql.out b/systemtest/testdata/testset2/const10.ql.out
new file mode 100644
index 0000000..a8f95b2
--- /dev/null
+++ b/systemtest/testdata/testset2/const10.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <long, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <long, [-2:2,-1:1]>
+ Type Schema...........: marray< long >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: long
+ Base Type Length......: 4
+ Data format.......... : Array
+ Data size (bytes).... : 60
+ 4 4 4 4 4
+ 4 4 4 4 4
+ 4 4 4 4 4
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const11.ql b/systemtest/testdata/testset2/const11.ql
new file mode 100644
index 0000000..6171ca1
--- /dev/null
+++ b/systemtest/testdata/testset2/const11.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <struct { long 0, float 1, long 2 }, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a + { -1, 1.0, 1 }
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const11.ql.java.out b/systemtest/testdata/testset2/const11.ql.java.out
new file mode 100644
index 0000000..76703de
--- /dev/null
+++ b/systemtest/testdata/testset2/const11.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasGMArray
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:102,0:102]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 12
+ Data format...........: 0
+ Data size (bytes).....: 180
+ 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 0 0 0 1 64 64 0 0 0 0 0 3 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const11.ql.out b/systemtest/testdata/testset2/const11.ql.out
new file mode 100644
index 0000000..8dd2850
--- /dev/null
+++ b/systemtest/testdata/testset2/const11.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <struct { long 0, float 1, long 2 }, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <struct { long 0, float 1, long 2 }, [-2:2,-1:1]>
+ Type Schema...........: marray< struct{ long 0, float 1, long 2 } >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: struct{ long 0, float 1, long 2 }
+ Base Type Length......: 12
+ Data format.......... : Array
+ Data size (bytes).... : 180
+{ 1, 3, 3} { 1, 3, 3} { 1, 3, 3} { 1, 3, 3} { 1, 3, 3}
+{ 1, 3, 3} { 1, 3, 3} { 1, 3, 3} { 1, 3, 3} { 1, 3, 3}
+{ 1, 3, 3} { 1, 3, 3} { 1, 3, 3} { 1, 3, 3} { 1, 3, 3}
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const2.ql b/systemtest/testdata/testset2/const2.ql
new file mode 100644
index 0000000..f9fbb8d
--- /dev/null
+++ b/systemtest/testdata/testset2/const2.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <long, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a * -1
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const2.ql.java.out b/systemtest/testdata/testset2/const2.ql.java.out
new file mode 100644
index 0000000..d8208e8
--- /dev/null
+++ b/systemtest/testdata/testset2/const2.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayInteger
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:177,0:177]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 4
+ Data format...........: 0
+ Data size (bytes).....: 60
+ -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const2.ql.out b/systemtest/testdata/testset2/const2.ql.out
new file mode 100644
index 0000000..247f1fe
--- /dev/null
+++ b/systemtest/testdata/testset2/const2.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <long, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <long, [-2:2,-1:1]>
+ Type Schema...........: marray< long >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: long
+ Base Type Length......: 4
+ Data format.......... : Array
+ Data size (bytes).... : 60
+ -2 -2 -2 -2 -2
+ -2 -2 -2 -2 -2
+ -2 -2 -2 -2 -2
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const3.ql b/systemtest/testdata/testset2/const3.ql
new file mode 100644
index 0000000..63b107f
--- /dev/null
+++ b/systemtest/testdata/testset2/const3.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <ulong, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a * 0x1ul
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const3.ql.java.out b/systemtest/testdata/testset2/const3.ql.java.out
new file mode 100644
index 0000000..5edfee3
--- /dev/null
+++ b/systemtest/testdata/testset2/const3.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayLong
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:125,0:125]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 8
+ Data format...........: 0
+ Data size (bytes).....: 120
+ 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const3.ql.out b/systemtest/testdata/testset2/const3.ql.out
new file mode 100644
index 0000000..c581628
--- /dev/null
+++ b/systemtest/testdata/testset2/const3.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <ulong, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <ulong, [-2:2,-1:1]>
+ Type Schema...........: marray< ulong >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: ulong
+ Base Type Length......: 4
+ Data format.......... : Array
+ Data size (bytes).... : 60
+ 2 2 2 2 2
+ 2 2 2 2 2
+ 2 2 2 2 2
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const4.ql b/systemtest/testdata/testset2/const4.ql
new file mode 100644
index 0000000..6bcb53b
--- /dev/null
+++ b/systemtest/testdata/testset2/const4.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <long, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a * -0x1
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const4.ql.java.out b/systemtest/testdata/testset2/const4.ql.java.out
new file mode 100644
index 0000000..d8208e8
--- /dev/null
+++ b/systemtest/testdata/testset2/const4.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayInteger
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:177,0:177]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 4
+ Data format...........: 0
+ Data size (bytes).....: 60
+ -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 -1 -1 -1 -2 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const4.ql.out b/systemtest/testdata/testset2/const4.ql.out
new file mode 100644
index 0000000..247f1fe
--- /dev/null
+++ b/systemtest/testdata/testset2/const4.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <long, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <long, [-2:2,-1:1]>
+ Type Schema...........: marray< long >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: long
+ Base Type Length......: 4
+ Data format.......... : Array
+ Data size (bytes).... : 60
+ -2 -2 -2 -2 -2
+ -2 -2 -2 -2 -2
+ -2 -2 -2 -2 -2
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const5.ql b/systemtest/testdata/testset2/const5.ql
new file mode 100644
index 0000000..df1dfbf
--- /dev/null
+++ b/systemtest/testdata/testset2/const5.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <octet, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a + 1o
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const5.ql.java.out b/systemtest/testdata/testset2/const5.ql.java.out
new file mode 100644
index 0000000..ed610fa
--- /dev/null
+++ b/systemtest/testdata/testset2/const5.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayByte
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:356,0:356]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 1
+ Data format...........: 0
+ Data size (bytes).....: 15
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const5.ql.out b/systemtest/testdata/testset2/const5.ql.out
new file mode 100644
index 0000000..203db73
--- /dev/null
+++ b/systemtest/testdata/testset2/const5.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <octet, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <octet, [-2:2,-1:1]>
+ Type Schema...........: marray< octet >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: octet
+ Base Type Length......: 1
+ Data format.......... : Array
+ Data size (bytes).... : 15
+ 3 3 3 3 3
+ 3 3 3 3 3
+ 3 3 3 3 3
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const6.ql b/systemtest/testdata/testset2/const6.ql
new file mode 100644
index 0000000..bd62a70
--- /dev/null
+++ b/systemtest/testdata/testset2/const6.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <float, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a + 1.0f
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const6.ql.java.out b/systemtest/testdata/testset2/const6.ql.java.out
new file mode 100644
index 0000000..06b1698
--- /dev/null
+++ b/systemtest/testdata/testset2/const6.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayFloat
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:177,0:177]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 4
+ Data format...........: 0
+ Data size (bytes).....: 60
+ 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const6.ql.out b/systemtest/testdata/testset2/const6.ql.out
new file mode 100644
index 0000000..5ba865c
--- /dev/null
+++ b/systemtest/testdata/testset2/const6.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <float, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <float, [-2:2,-1:1]>
+ Type Schema...........: marray< float >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: float
+ Base Type Length......: 4
+ Data format.......... : Array
+ Data size (bytes).... : 60
+ 3 3 3 3 3
+ 3 3 3 3 3
+ 3 3 3 3 3
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const7.ql b/systemtest/testdata/testset2/const7.ql
new file mode 100644
index 0000000..813115d
--- /dev/null
+++ b/systemtest/testdata/testset2/const7.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <float, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a + 1.0
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const7.ql.java.out b/systemtest/testdata/testset2/const7.ql.java.out
new file mode 100644
index 0000000..06b1698
--- /dev/null
+++ b/systemtest/testdata/testset2/const7.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayFloat
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:177,0:177]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 4
+ Data format...........: 0
+ Data size (bytes).....: 60
+ 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 64 64 0 0 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const7.ql.out b/systemtest/testdata/testset2/const7.ql.out
new file mode 100644
index 0000000..5ba865c
--- /dev/null
+++ b/systemtest/testdata/testset2/const7.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <float, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <float, [-2:2,-1:1]>
+ Type Schema...........: marray< float >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: float
+ Base Type Length......: 4
+ Data format.......... : Array
+ Data size (bytes).... : 60
+ 3 3 3 3 3
+ 3 3 3 3 3
+ 3 3 3 3 3
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const8.ql b/systemtest/testdata/testset2/const8.ql
new file mode 100644
index 0000000..9f0f057
--- /dev/null
+++ b/systemtest/testdata/testset2/const8.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <float, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a - 1f
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const8.ql.java.out b/systemtest/testdata/testset2/const8.ql.java.out
new file mode 100644
index 0000000..38a2388
--- /dev/null
+++ b/systemtest/testdata/testset2/const8.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayFloat
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:177,0:177]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 4
+ Data format...........: 0
+ Data size (bytes).....: 60
+ 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 63 -128 0 0 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const8.ql.out b/systemtest/testdata/testset2/const8.ql.out
new file mode 100644
index 0000000..0d4e9e6
--- /dev/null
+++ b/systemtest/testdata/testset2/const8.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <float, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <float, [-2:2,-1:1]>
+ Type Schema...........: marray< float >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: float
+ Base Type Length......: 4
+ Data format.......... : Array
+ Data size (bytes).... : 60
+ 1 1 1 1 1
+ 1 1 1 1 1
+ 1 1 1 1 1
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/const9.ql b/systemtest/testdata/testset2/const9.ql
new file mode 100644
index 0000000..d34db82
--- /dev/null
+++ b/systemtest/testdata/testset2/const9.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <char, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a - 1c
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/const9.ql.java.out b/systemtest/testdata/testset2/const9.ql.java.out
new file mode 100644
index 0000000..b9f0d3f
--- /dev/null
+++ b/systemtest/testdata/testset2/const9.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayByte
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:356,0:356]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 1
+ Data format...........: 0
+ Data size (bytes).....: 15
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/const9.ql.out b/systemtest/testdata/testset2/const9.ql.out
new file mode 100644
index 0000000..9887b9e
--- /dev/null
+++ b/systemtest/testdata/testset2/const9.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <char, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <char, [-2:2,-1:1]>
+ Type Schema...........: marray< char >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: char
+ Base Type Length......: 1
+ Data format.......... : Array
+ Data size (bytes).... : 15
+ 1 1 1 1 1
+ 1 1 1 1 1
+ 1 1 1 1 1
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/constmdd.ql b/systemtest/testdata/testset2/constmdd.ql
new file mode 100644
index 0000000..18bf9ef
--- /dev/null
+++ b/systemtest/testdata/testset2/constmdd.ql
@@ -0,0 +1,5 @@
+-- Testbed: result_type=set <marray <char, [-2:2,-1:1]>>
+-- Testbed: result_elements=1
+
+select a + < [-2:2,-1:1] 1c, 2c, 3c; 1c, 2c, 3c; 1c, 2c, 3c; 1c, 2c, 3c; 1c, 2c, 3c >
+from ImgCharMask as a
diff --git a/systemtest/testdata/testset2/constmdd.ql.java.out b/systemtest/testdata/testset2/constmdd.ql.java.out
new file mode 100644
index 0000000..61fe4a5
--- /dev/null
+++ b/systemtest/testdata/testset2/constmdd.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasMArrayByte
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [-2:2,-1:1]
+ TilingDomain..........: [0:356,0:356]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 1
+ Data format...........: 0
+ Data size (bytes).....: 15
+ 3 4 5 3 4 5 3 4 5 3 4 5 3 4 5 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/constmdd.ql.out b/systemtest/testdata/testset2/constmdd.ql.out
new file mode 100644
index 0000000..98fe471
--- /dev/null
+++ b/systemtest/testdata/testset2/constmdd.ql.out
@@ -0,0 +1,16 @@
+-- Testbed line: result_type=set <marray <char, [-2:2,-1:1]>>
+-- Testbed line: result_elements=1
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <char, [-2:2,-1:1]>
+ Type Schema...........: marray< char >
+ Domain................: [-2:2,-1:1]
+ Base Type Schema......: char
+ Base Type Length......: 1
+ Data format.......... : Array
+ Data size (bytes).... : 15
+ 3 3 3 3 3
+ 4 4 4 4 4
+ 5 5 5 5 5
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/oid5.ql b/systemtest/testdata/testset2/oid5.ql
new file mode 100644
index 0000000..71b9709
--- /dev/null
+++ b/systemtest/testdata/testset2/oid5.ql
@@ -0,0 +1,6 @@
+-- Testbed: result_type=
+-- Testbed: result_elements=0
+
+select a
+from ImgRGBA as a
+where oid(a) <= 0
diff --git a/systemtest/testdata/testset2/oid5.ql.java.out b/systemtest/testdata/testset2/oid5.ql.java.out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/systemtest/testdata/testset2/oid5.ql.java.out
diff --git a/systemtest/testdata/testset2/oid5.ql.out b/systemtest/testdata/testset2/oid5.ql.out
new file mode 100644
index 0000000..bb90a32
--- /dev/null
+++ b/systemtest/testdata/testset2/oid5.ql.out
@@ -0,0 +1,4 @@
+-- Testbed line: result_type=
+-- Testbed line: result_elements=0
+-- Testbed start block:
+-- Testbed end block:
diff --git a/systemtest/testdata/testset2/oid6.ql b/systemtest/testdata/testset2/oid6.ql
new file mode 100644
index 0000000..16f2449
--- /dev/null
+++ b/systemtest/testdata/testset2/oid6.ql
@@ -0,0 +1,6 @@
+-- Testbed: result_type=set <marray <struct { char red, char green, char blue }, [0:10,0:10]>>
+-- Testbed: result_elements=2
+
+select a
+from ImgRGBA as a
+where oid(a) > 0
diff --git a/systemtest/testdata/testset2/oid6.ql.java.out b/systemtest/testdata/testset2/oid6.ql.java.out
new file mode 100644
index 0000000..c039a78
--- /dev/null
+++ b/systemtest/testdata/testset2/oid6.ql.java.out
@@ -0,0 +1,15 @@
+
+rasj.RasGMArray
+ Object Name...........:
+ Object Type...........: 1
+ Object Type Name......:
+ Type Structure........:
+ Type Schema...........: <nn>
+ Domain................: [0:10,0:10]
+ TilingDomain..........: [0:205,0:205]
+ TileSize..............: 128000 bytes
+ Base Type Schema......: <nn>
+ Base Type Length......: 3
+ Data format...........: 0
+ Data size (bytes).....: 363
+ 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 \ No newline at end of file
diff --git a/systemtest/testdata/testset2/oid6.ql.out b/systemtest/testdata/testset2/oid6.ql.out
new file mode 100644
index 0000000..79f970f
--- /dev/null
+++ b/systemtest/testdata/testset2/oid6.ql.out
@@ -0,0 +1,44 @@
+-- Testbed line: result_type=set <marray <struct { char red, char green, char blue }, [0:10,0:10]>>
+-- Testbed line: result_elements=2
+-- Testbed start block:
+Image 1
+GMarray
+ Type Structure........: marray <struct { char red, char green, char blue }, [0:10,0:10]>
+ Type Schema...........: marray< struct{ char red, char green, char blue } >
+ Domain................: [0:10,0:10]
+ Base Type Schema......: struct{ char red, char green, char blue }
+ Base Type Length......: 3
+ Data format.......... : Array
+ Data size (bytes).... : 363
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+Image 2
+GMarray
+ Type Structure........: marray <struct { char red, char green, char blue }, [0:10,0:10]>
+ Type Schema...........: marray< struct{ char red, char green, char blue } >
+ Domain................: [0:10,0:10]
+ Base Type Schema......: struct{ char red, char green, char blue }
+ Base Type Length......: 3
+ Data format.......... : Array
+ Data size (bytes).... : 363
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+{ 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3} { 1, 2, 3}
+-- Testbed end block: