Changeset: aaef85a11f4d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=aaef85a11f4d
Modified Files:
        sql/test/testdb/Tests/dump-nogeom.stable.out
Branch: Jun2020
Log Message:

Approve dump output without geom.


diffs (52 lines):

diff --git a/sql/test/testdb/Tests/dump-nogeom.stable.out 
b/sql/test/testdb/Tests/dump-nogeom.stable.out
--- a/sql/test/testdb/Tests/dump-nogeom.stable.out
+++ b/sql/test/testdb/Tests/dump-nogeom.stable.out
@@ -101370,6 +101370,48 @@ 8    "attempt"
 CREATE TABLE "testschema"."""" (
        """" INTEGER
 );
+CREATE FUNCTION "testschema"."pyapi01"("i" INTEGER) RETURNS TABLE ("i" 
INTEGER, "d" DOUBLE) LANGUAGE PYTHON
+{
+        x = range(1, i + 1)
+        y = [42.0] * i
+        return([x,y])
+};
+CREATE FUNCTION "testschema"."pyapi02"("i" INTEGER, "j" INTEGER, "z" INTEGER) 
RETURNS INTEGER LANGUAGE PYTHON3
+{
+    x = i * sum(j) * z
+    return x
+};
+CREATE FUNCTION "testschema"."rapi01"("i" INTEGER) RETURNS TABLE ("i" INTEGER, 
"d" DOUBLE) LANGUAGE R
+{
+        return(data.frame(i=seq(1,i),d=42.0));
+};
+CREATE FUNCTION "testschema"."rapi02"("i" INTEGER, "j" INTEGER, "z" INTEGER) 
RETURNS INTEGER LANGUAGE R
+{
+        return(i*sum(j)*z);
+};
+CREATE FUNCTION "testschema"."capi00"("inp" INTEGER) RETURNS INTEGER LANGUAGE C
+{
+    size_t i;
+    result->initialize(result, inp.count);
+    for(i = 0; i < inp.count; i++) {
+        result->data[i] = inp.data[i] * 2;
+    }
+};
+CREATE AGGREGATE "testschema"."aggrmedian"("val" INTEGER) RETURNS INTEGER 
LANGUAGE PYTHON
+{
+        if 'aggr_group' in locals():
+                unique = numpy.unique(aggr_group)
+                x = numpy.zeros(shape=(unique.size))
+                for i in range(0,unique.size):
+                        x[i] = 
numpy.median(val[numpy.where(aggr_group==unique[i])])
+                return(x)
+        else:
+                return(numpy.median(val))
+};
+CREATE FUNCTION "testschema"."pyapi10_mult"("i" INTEGER, "j" INTEGER) RETURNS 
INTEGER LANGUAGE PYTHON_MAP
+{
+    return(i*j)
+};
 ALTER TABLE "testschema"."testme" ADD TABLE "testschema"."subtable1" AS 
PARTITION FROM RANGE MINVALUE TO '11' WITH NULL VALUES;
 ALTER TABLE "testschema"."testme" ADD TABLE "testschema"."subtable2" AS 
PARTITION FROM '11' TO '20';
 ALTER TABLE "testschema"."testme" ADD TABLE "testschema"."subtable3" AS 
PARTITION FROM '21' TO RANGE MAXVALUE;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to