Changeset: 209a36cef5ba for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=209a36cef5ba
Modified Files:
sql/test/BugTracker-2018/Tests/count_from_commented_function_signatures.Bug-6542.stable.out
Branch: Mar2018
Log Message:
approved output
diffs (275 lines):
diff --git
a/sql/test/BugTracker-2018/Tests/count_from_commented_function_signatures.Bug-6542.stable.out
b/sql/test/BugTracker-2018/Tests/count_from_commented_function_signatures.Bug-6542.stable.out
---
a/sql/test/BugTracker-2018/Tests/count_from_commented_function_signatures.Bug-6542.stable.out
+++
b/sql/test/BugTracker-2018/Tests/count_from_commented_function_signatures.Bug-6542.stable.out
@@ -77,7 +77,7 @@ Ready.
% .plan # table_name
% rel # name
% clob # type
-% 148 # length
+% 150 # length
project (
| group by (
| | project (
@@ -88,36 +88,240 @@ project (
| | | | | | | project (
| | | | | | | | project (
| | | | | | | | | project (
-| | | | | | | | | | left outer join (
+| | | | | | | | | | project (
| | | | | | | | | | | left outer join (
-| | | | | | | | | | | | join (
+| | | | | | | | | | | | left outer join (
| | | | | | | | | | | | | join (
-| | | | | | | | | | | | | | table(sys.functions) [ "functions"."id" as
"f"."id", "functions"."schema_id" as "f"."schema_id" ] COUNT ,
-| | | | | | | | | | | | | | table(sys.comments) [ "comments"."id" NOT NULL
HASHCOL as "c"."id" ] COUNT
-| | | | | | | | | | | | | ) [ "f"."id" = "c"."id" NOT NULL HASHCOL ],
-| | | | | | | | | | | | | table(sys.schemas) [ "schemas"."id" as "s"."id" ]
COUNT
-| | | | | | | | | | | | ) [ "f"."schema_id" = "s"."id" ],
-| | | | | | | | | | | | table(sys.systemfunctions) [
"systemfunctions"."function_id" NOT NULL as "sf"."function_id" ] COUNT
-| | | | | | | | | | | ) [ "f"."id" = "sf"."function_id" NOT NULL ],
-| | | | | | | | | | | select (
-| | | | | | | | | | | | table(sys.args) [ "args"."func_id" as "p"."func_id",
"args"."inout" as "p"."inout", "args"."number" as "p"."number" ] COUNT
-| | | | | | | | | | | ) [ "p"."inout" = tinyint "1" ]
-| | | | | | | | | | ) [ "f"."id" = "p"."func_id" ]
-| | | | | | | | | ) [ "f"."id", "p"."number" ] [ "f"."id", "p"."number" ASC ]
-| | | | | | | | ) [ "f"."id", "p"."number" ]
-| | | | | | | ) [ "f"."id", "p"."number" ] [ "f"."id", "p"."number" ]
-| | | | | | ) [ "f"."id", "p"."number" ]
-| | | | | ) [ "f"."id", "p"."number" ] [ "f"."id" ASC, "p"."number" ASC ]
-| | | | ) [ "f"."id" ]
+| | | | | | | | | | | | | | join (
+| | | | | | | | | | | | | | | table(sys.functions) [ "functions"."id" as
"f"."id", "functions"."schema_id" as "f"."schema_id" ] COUNT ,
+| | | | | | | | | | | | | | | table(sys.comments) [ "comments"."id" NOT NULL
HASHCOL as "c"."id" ] COUNT
+| | | | | | | | | | | | | | ) [ "f"."id" = "c"."id" NOT NULL HASHCOL ],
+| | | | | | | | | | | | | | table(sys.schemas) [ "schemas"."id" as "s"."id" ]
COUNT
+| | | | | | | | | | | | | ) [ "f"."schema_id" = "s"."id" ],
+| | | | | | | | | | | | | table(sys.systemfunctions) [
"systemfunctions"."function_id" NOT NULL as "sf"."function_id" ] COUNT
+| | | | | | | | | | | | ) [ "f"."id" = "sf"."function_id" NOT NULL ],
+| | | | | | | | | | | | select (
+| | | | | | | | | | | | | table(sys.args) [ "args"."func_id" as "p"."func_id",
"args"."inout" as "p"."inout", "args"."number" as "p"."number" ] COUNT
+| | | | | | | | | | | | ) [ "p"."inout" = tinyint "1" ]
+| | | | | | | | | | | ) [ "f"."id" = "p"."func_id" ]
+| | | | | | | | | | ) [ "f"."id", "p"."number" ] [ "f"."id", "p"."number" ASC ]
+| | | | | | | | | ) [ "f"."id", "p"."number" ]
+| | | | | | | | ) [ "f"."id", "p"."number" ] [ "f"."id", "p"."number" ]
+| | | | | | | ) [ "f"."id", "p"."number" ]
+| | | | | | ) [ "f"."id", "p"."number" ] [ "f"."id" ASC, "p"."number" ASC ]
+| | | | | ) [ "f"."id", "p"."number", sys.row_number("f"."id", boolean
"false", sys.diff(sys.diff("f"."id" ASC), "p"."number" ASC)) as "L37"."L37" ]
+| | | | ) [ "f"."id", "L37"."L37" ]
| | | ) [ "f"."id" as "L2"."fid", "L37"."L37" as "L40"."line" ] [ "L40"."line"
ASC ]
| | ) [ "L2"."fid" as "commented_function_signatures"."fid" ]
| ) [ ] [ sys.count() NOT NULL as "L46"."L46" ]
) [ "L46" NOT NULL as "L47"."L46" ]
#explain select count (*) from sys.commented_function_signatures;
-fill in the explain output when it no longer does:
dev/sql/backends/monet5/rel_bin.c:575: exp_bin: Assertion `s' failed.
+% .explain # table_name
+% mal # name
+% clob # type
+% 145 # length
+function user.s4_1():void;
+X_1:void := querylog.define("explain select count (*) from
sys.commented_function_signatures;":str, "default_pipe":str, 159:int);
+barrier X_399:bit := language.dataflow();
+X_74:bat[:int] := bat.new(nil:int);
+X_4:int := sql.mvc();
+C_5:bat[:oid] := sql.tid(X_4:int, "sys":str, "functions":str);
+X_8:bat[:int] := sql.bind(X_4:int, "sys":str, "functions":str, "id":str,
0:int);
+(X_13:bat[:oid], X_14:bat[:int]) := sql.bind(X_4:int, "sys":str,
"functions":str, "id":str,