Changeset: 3c9572faf534 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3c9572faf534
Modified Files:
sql/test/emptydb/Tests/check.stable.out
sql/test/emptydb/Tests/check.stable.out.32bit
sql/test/emptydb/Tests/check.stable.out.int128
Branch: unlock
Log Message:
approved output
diffs (truncated from 697 to 300 lines):
diff --git a/sql/test/emptydb/Tests/check.stable.out
b/sql/test/emptydb/Tests/check.stable.out
--- a/sql/test/emptydb/Tests/check.stable.out
+++ b/sql/test/emptydb/Tests/check.stable.out
@@ -136,7 +136,6 @@
\dSf sys."evalalgebra"
\dSf sys."fitsattach"
\dSf sys."fitsload"
-\dSf sys."flush_log"
\dSf sys."fuse"
\dSf sys."generate_series"
\dSf sys."geometrytype"
@@ -2159,7 +2158,7 @@ drop function pcre_replace(string, strin
% .%1, .s, .f, ., ., .f, .fl, ., .f, .f,
.f, .f, ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., . # table_name
% %1, name, name, system, query, mod, language_name, func_type,
side_effect, varres, vararg, semantics, name0, type0, type_digits0,
type_scale0, inout0, name1, type1, type_digits1, type_scale1, inout1,
name2, type2, type_digits2, type_scale2, inout2, name3, type3,
type_digits3, type_scale3, inout3, name4, type4, type_digits4,
type_scale4, inout4, name5, type5, type_digits5, type_scale5, inout5,
name6, type6, type_digits6, type_scale6, inout6, name7, type7,
type_digits7, type_scale7, inout7, name8, type8, type_digits8,
type_scale8, inout8, name9, type9, type_digits9, type_scale9, inout9,
name10, type10, type_digits10, type_scale10, inout10, name11, type11,
type_digits11, type_scale11, inout11, name12, type12, type_digits12,
type_scale12, inout12, name13, type13, type_digits13, type_scale13,
inout13, name14, type14, type_digits14, type_scale14, inout14,
name15, type15, type_digits15, type_scale15, inout15 # name
% char, varchar, varchar, char, varchar,
varchar, varchar, varchar, boolean, boolean,
boolean, boolean, varchar, varchar, int, int,
char, varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char # type
-% 13, 8, 24, 6, 3342, 9, 10, 26, 5, 5,
5, 5, 11, 14, 4, 1, 3, 16, 14, 4,
1, 3, 16, 14, 4, 1, 3, 27, 12, 4,
1, 3, 9, 9, 2, 1, 3, 14, 14, 4,
1, 3, 12, 14, 2, 1, 3, 11, 7, 2,
1, 3, 11, 7, 2, 1, 3, 10, 6, 2,
1, 3, 9, 6, 2, 1, 3, 6, 7, 2,
1, 3, 8, 7, 2, 1, 3, 6, 7, 2,
1, 3, 9, 7, 1, 1, 3, 6, 7, 1,
1, 3 # length
+% 13, 8, 24, 6, 3342, 9, 10, 26, 5, 5,
5, 5, 11, 14, 4, 1, 3, 16, 14, 4,
1, 3, 16, 14, 4, 1, 3, 27, 12, 4,
1, 3, 9, 9, 2, 1, 3, 14, 14, 4,
1, 3, 12, 14, 3, 1, 3, 11, 7, 2,
1, 3, 11, 7, 2, 1, 3, 10, 6, 2,
1, 3, 9, 7, 2, 1, 3, 6, 7, 2,
1, 3, 8, 6, 2, 1, 3, 6, 7, 1,
1, 3, 9, 7, 1, 1, 3, 6, 7, 1,
1, 3 # length
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name bigint) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false,
false, true, "result", "json", 0, 0, "out", "js", "json",
0, 0, "in", "name", "bigint", 64, 0, "in", NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL ]
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name integer) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false, false,
true, "result", "json", 0, 0, "out", "js", "json", 0,
0, "in", "name", "int", 32, 0, "in", NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL ]
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name tinyint) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false, false,
true, "result", "json", 0, 0, "out", "js", "json", 0,
0, "in", "name", "tinyint", 8, 0, "in", NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL ]
diff --git a/sql/test/emptydb/Tests/check.stable.out.32bit
b/sql/test/emptydb/Tests/check.stable.out.32bit
--- a/sql/test/emptydb/Tests/check.stable.out.32bit
+++ b/sql/test/emptydb/Tests/check.stable.out.32bit
@@ -1024,7 +1024,6 @@ create function sys.epoch(ts timestamp w
create procedure sys.evalalgebra(ra_stmt string, opt bool) external name
sql."evalAlgebra";
create procedure fitsattach(fname string) external name fits.attach;
create procedure fitsload(tname string) external name fits.load;
-create procedure sys.flush_log () external name sql."flush_log";
create function fuse(one integer, two integer) returns bigint external name
udf.fuse;
create function fuse(one smallint, two smallint) returns integer external name
udf.fuse;
create function fuse(one tinyint, two tinyint) returns smallint external name
udf.fuse;
@@ -1331,7 +1330,8 @@ create function timestamp_to_str(d times
create function sys.tracelog() returns table (ticks bigint, stmt string)
external name sql.dump_trace;
create function sys.user_statistics() returns table(username string,
querycount bigint, totalticks bigint, started timestamp, finished timestamp,
maxticks bigint, maxquery string) external name sysmon.user_statistics;
create function sys.uuid() returns uuid external name uuid."new";
-CREATE FUNCTION "sys"."var"() RETURNS TABLE("schema" string, "name" string,
"type" string, "value" string) EXTERNAL NAME "sql"."sql_variables";
+create function sys.uuid(d int) returns uuid external name uuid."new";
+create function "sys"."var"() returns table("schema" string, "name" string,
"type" string, "value" string) external name "sql"."sql_variables";
create aggregate var_pop(val bigint) returns double external name
"aggr"."variancep";
create aggregate var_pop(val double) returns double external name
"aggr"."variancep";
create aggregate var_pop(val integer) returns double external name
"aggr"."variancep";
@@ -2158,7 +2158,7 @@ drop function pcre_replace(string, strin
% .%1, .s, .f, ., ., .f, .fl, ., .f, .f,
.f, .f, ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., . # table_name
% %1, name, name, system, query, mod, language_name, func_type,
side_effect, varres, vararg, semantics, name0, type0, type_digits0,
type_scale0, inout0, name1, type1, type_digits1, type_scale1, inout1,
name2, type2, type_digits2, type_scale2, inout2, name3, type3,
type_digits3, type_scale3, inout3, name4, type4, type_digits4,
type_scale4, inout4, name5, type5, type_digits5, type_scale5, inout5,
name6, type6, type_digits6, type_scale6, inout6, name7, type7,
type_digits7, type_scale7, inout7, name8, type8, type_digits8,
type_scale8, inout8, name9, type9, type_digits9, type_scale9, inout9,
name10, type10, type_digits10, type_scale10, inout10, name11, type11,
type_digits11, type_scale11, inout11, name12, type12, type_digits12,
type_scale12, inout12, name13, type13, type_digits13, type_scale13,
inout13, name14, type14, type_digits14, type_scale14, inout14,
name15, type15, type_digits15, type_scale15, inout15 # name
% char, varchar, varchar, char, varchar,
varchar, varchar, varchar, boolean, boolean,
boolean, boolean, varchar, varchar, int, int,
char, varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char # type
-% 13, 8, 24, 6, 3342, 9, 10, 26, 5, 5,
5, 5, 11, 14, 4, 1, 3, 16, 14, 4,
1, 3, 16, 14, 4, 1, 3, 27, 12, 4,
1, 3, 9, 9, 2, 1, 3, 14, 14, 4,
1, 3, 12, 14, 2, 1, 3, 11, 7, 2,
1, 3, 11, 7, 2, 1, 3, 10, 6, 2,
1, 3, 9, 6, 2, 1, 3, 6, 7, 2,
1, 3, 8, 7, 2, 1, 3, 6, 7, 2,
1, 3, 9, 7, 1, 1, 3, 6, 7, 1,
1, 3 # length
+% 13, 8, 24, 6, 3342, 9, 10, 26, 5, 5,
5, 5, 11, 14, 4, 1, 3, 16, 14, 4,
1, 3, 16, 14, 4, 1, 3, 27, 12, 4,
1, 3, 9, 9, 2, 1, 3, 14, 14, 4,
1, 3, 12, 14, 3, 1, 3, 11, 7, 2,
1, 3, 11, 7, 2, 1, 3, 10, 6, 2,
1, 3, 9, 7, 2, 1, 3, 6, 7, 2,
1, 3, 8, 6, 2, 1, 3, 6, 7, 1,
1, 3, 9, 7, 1, 1, 3, 6, 7, 1,
1, 3 # length
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name bigint) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false,
false, true, "result", "json", 0, 0, "out", "js", "json",
0, 0, "in", "name", "bigint", 64, 0, "in", NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL ]
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name integer) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false, false,
true, "result", "json", 0, 0, "out", "js", "json", 0,
0, "in", "name", "int", 32, 0, "in", NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL ]
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name tinyint) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false, false,
true, "result", "json", 0, 0, "out", "js", "json", 0,
0, "in", "name", "tinyint", 8, 0, "in", NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL ]
@@ -2441,7 +2441,6 @@ drop function pcre_replace(string, strin
[ "sys.functions", "sys", "fitsload", "SYSTEM", "create
procedure fitsload(tname string) external name fits.load;", "fits", "MAL",
"Procedure", true, false, false, true, "tname", "clob", 0,
0, "in", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL ]
[ "sys.functions", "sys", "floor", "SYSTEM", "floor",
"mmath", "Internal C", "Scalar function", false, false, false,
false, "res_0", "double", 53, 0, "out", "arg_1",
"double", 53, 0, "in", NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL ]
[ "sys.functions", "sys", "floor", "SYSTEM", "floor",
"mmath", "Internal C", "Scalar function", false, false, false,
false, "res_0", "real", 24, 0, "out", "arg_1", "real",
24, 0, "in", NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL ]
-[ "sys.functions", "sys", "flush_log", "SYSTEM", "create
procedure sys.flush_log () external name sql.\"flush_log\";", "sql", "MAL",
"Procedure", true, false, false, true, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL ]
[ "sys.functions", "sys", "fuse", "SYSTEM", "create function
fuse(one integer, two integer) returns bigint external name udf.fuse;",
"udf", "MAL", "Scalar function", false, false, false, true,
"result", "bigint", 64, 0, "out", "one", "int", 32,
0, "in", "two", "int", 32, 0, "in", NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL ]
[ "sys.functions", "sys", "fuse", "SYSTEM", "create function
fuse(one smallint, two smallint) returns integer external name udf.fuse;",
"udf", "MAL", "Scalar function", false, false, false, true,
"result", "int", 32, 0, "out", "one", "smallint", 16,
0, "in", "two", "smallint", 16, 0, "in", NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL ]
[ "sys.functions", "sys", "fuse", "SYSTEM", "create function
fuse(one tinyint, two tinyint) returns smallint external name udf.fuse;",
"udf", "MAL", "Scalar function", false, false, false, true,
"result", "smallint", 16, 0, "out", "one", "tinyint",
8, 0, "in", "two", "tinyint", 8, 0, "in", NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL ]
@@ -3469,7 +3468,8 @@ drop function pcre_replace(string, strin
[ "sys.functions", "sys", "user_statistics", "SYSTEM", "create
function sys.user_statistics() returns table(username string, querycount
bigint, totalticks bigint, started timestamp, finished timestamp, maxticks
bigint, maxquery string) external name sysmon.user_statistics;", "sysmon",
"MAL", "Function returning a table", true, false, false, true,
"username", "clob", 0, 0, "out", "querycount", "bigint",
64, 0, "out", "totalticks", "bigint", 64, 0, "out",
"started", "timestamp", 7, 0, "out", "finished",
"timestamp", 7, 0, "out", "maxticks", "bigint", 64,
0, "out", "maxquery", "clob", 0, 0, "out", NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL ]
[ "sys.functions", "sys", "usweekofyear", "SYSTEM", "usweekofyear",
"mtime", "Internal C", "Scalar function", false, false, false,
false, "res_0", "int", 32, 0, "out", "arg_1", "date",
0, 0, "in", NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL ]
[ "sys.functions", "sys", "uuid", "SYSTEM", "create function
sys.uuid() returns uuid external name uuid.\"new\";", "uuid", "MAL", "Scalar
function", true, false, false, true, "result", "uuid", 0,
0, "out", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL ]
-[ "sys.functions", "sys", "var", "SYSTEM", "CREATE FUNCTION
\"sys\".\"var\"() RETURNS TABLE(\"schema\" string, \"name\" string, \"type\"
string, \"value\" string) EXTERNAL NAME \"sql\".\"sql_variables\";",
"sql", "SQL", "Function returning a table", false, false, false, true,
"schema", "char", 0, 0, "out", "name", "char", 0, 0,
"out", "type", "char", 0, 0, "out", "value", "char", 0,
0, "out", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL ]
+[ "sys.functions", "sys", "uuid", "SYSTEM", "create function
sys.uuid(d int) returns uuid external name uuid.\"new\";", "uuid", "MAL",
"Scalar function", false, false, false, true, "result", "uuid",
0, 0, "out", "d", "int", 32, 0, "in", NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL ]
+[ "sys.functions", "sys", "var", "SYSTEM", "create function
\"sys\".\"var\"() returns table(\"schema\" string, \"name\" string, \"type\"
string, \"value\" string) external name \"sql\".\"sql_variables\";",
"sql", "SQL", "Function returning a table", false, false, false, true,
"schema", "char", 0, 0, "out", "name", "char", 0, 0,
"out", "type", "char", 0, 0, "out", "value", "char", 0,
0, "out", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL ]
[ "sys.functions", "sys", "var_pop", "SYSTEM", "create
aggregate var_pop(val bigint) returns double external name
\"aggr\".\"variancep\";", "aggr", "MAL", "Aggregate function", false,
false, false, true, "result", "double", 53, 0, "out",
"val", "bigint", 64, 0, "in", NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL ]
[ "sys.functions", "sys", "var_pop", "SYSTEM", "create
aggregate var_pop(val double) returns double external name
\"aggr\".\"variancep\";", "aggr", "MAL", "Aggregate function", false,
false, false, true, "result", "double", 53, 0, "out",
"val", "double", 53, 0, "in", NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL ]
[ "sys.functions", "sys", "var_pop", "SYSTEM", "create
aggregate var_pop(val integer) returns double external name
\"aggr\".\"variancep\";", "aggr", "MAL", "Aggregate function", false,
false, false, true, "result", "double", 53, 0, "out",
"val", "int", 32, 0, "in", NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL ]
diff --git a/sql/test/emptydb/Tests/check.stable.out.int128
b/sql/test/emptydb/Tests/check.stable.out.int128
--- a/sql/test/emptydb/Tests/check.stable.out.int128
+++ b/sql/test/emptydb/Tests/check.stable.out.int128
@@ -499,8 +499,12 @@ SYSTEM FUNCTION sys.debugflags
SYSTEM FUNCTION sys.decade
SYSTEM FUNCTION sys.degrees
SYSTEM FUNCTION sys.deltas
-SYSTEM FUNCTION sys.dense_rank
-SYSTEM FUNCTION sys.diff
+SYSTEM WINDOW sys.dense_rank
+SYSTEM FUNCTION sys.describe_columns
+SYSTEM FUNCTION sys.describe_function
+SYSTEM FUNCTION sys.describe_table
+SYSTEM FUNCTION sys.describe_type
+SYSTEM WINDOW sys.diff
SYSTEM FUNCTION sys.difference
SYSTEM PROCEDURE sys.droporderindex
SYSTEM FUNCTION sys.editdistance
@@ -511,7 +515,7 @@ SYSTEM FUNCTION sys.epoch_ms
SYSTEM PROCEDURE sys.evalalgebra
SYSTEM AGGREGATE sys.exist
SYSTEM FUNCTION sys.exp
-SYSTEM FUNCTION sys.first_value
+SYSTEM WINDOW sys.first_value
SYSTEM PROCEDURE sys.fitsattach
SYSTEM PROCEDURE sys.fitsload
SYSTEM FUNCTION sys.floor
@@ -535,7 +539,7 @@ SYSTEM FUNCTION sys.getroboturl
SYSTEM FUNCTION sys.getuser
SYSTEM FUNCTION sys.greatest
SYSTEM AGGREGATE sys.group_concat
-SYSTEM FUNCTION sys.group_concat
+SYSTEM WINDOW sys.group_concat
SYSTEM AGGREGATE sys.grouping
SYSTEM FUNCTION sys.has_m
SYSTEM FUNCTION sys.has_z
@@ -557,10 +561,10 @@ SYSTEM FUNCTION sys.isaurl
SYSTEM FUNCTION sys.isauuid
SYSTEM FUNCTION sys.isnotnull
SYSTEM FUNCTION sys.isnull
-SYSTEM FUNCTION sys.lag
-SYSTEM FUNCTION sys.last_value
+SYSTEM WINDOW sys.lag
+SYSTEM WINDOW sys.last_value
SYSTEM FUNCTION sys.lcase
-SYSTEM FUNCTION sys.lead
+SYSTEM WINDOW sys.lead
SYSTEM FUNCTION sys.least
SYSTEM FUNCTION sys.left
SYSTEM FUNCTION sys.left_shift
@@ -569,7 +573,7 @@ SYSTEM FUNCTION sys.length
SYSTEM FUNCTION sys.levenshtein
SYSTEM FILTER FUNCTION sys.like
SYSTEM AGGREGATE sys.listagg
-SYSTEM FUNCTION sys.listagg
+SYSTEM WINDOW sys.listagg
SYSTEM PROCEDURE sys.listdir
SYSTEM PROCEDURE sys.listdirpat
SYSTEM FUNCTION sys.ln
@@ -586,7 +590,7 @@ SYSTEM FUNCTION sys.ltrim
SYSTEM FUNCTION sys.malfunctions
SYSTEM FUNCTION sys.masklen
SYSTEM AGGREGATE sys.max
-SYSTEM FUNCTION sys.max
+SYSTEM WINDOW sys.max
SYSTEM FUNCTION sys.mbr
SYSTEM FUNCTION sys.mbr_above
SYSTEM FUNCTION sys.mbr_below
@@ -605,7 +609,7 @@ SYSTEM FUNCTION sys.md5
SYSTEM AGGREGATE sys.median
SYSTEM AGGREGATE sys.median_avg
SYSTEM AGGREGATE sys.min
-SYSTEM FUNCTION sys.min
+SYSTEM WINDOW sys.min
SYSTEM FUNCTION sys.minute
SYSTEM FUNCTION sys.mod
SYSTEM FUNCTION sys.month
@@ -624,8 +628,8 @@ SYSTEM AGGREGATE sys.not_exist
SYSTEM FILTER FUNCTION sys.not_ilike
SYSTEM FILTER FUNCTION sys.not_like
SYSTEM AGGREGATE sys.not_unique
-SYSTEM FUNCTION sys.nth_value
-SYSTEM FUNCTION sys.ntile
+SYSTEM WINDOW sys.nth_value
+SYSTEM WINDOW sys.ntile
SYSTEM AGGREGATE sys.null
SYSTEM FUNCTION sys.nullif
SYSTEM FUNCTION sys.octet_length
@@ -635,13 +639,13 @@ SYSTEM FUNCTION sys.or
SYSTEM FUNCTION sys.password_hash
SYSTEM FUNCTION sys.patindex
SYSTEM PROCEDURE sys.pause
-SYSTEM FUNCTION sys.percent_rank
+SYSTEM WINDOW sys.percent_rank
SYSTEM FUNCTION sys.pi
SYSTEM FUNCTION sys.power
SYSTEM FUNCTION sys.prepared_statements
SYSTEM FUNCTION sys.prepared_statements_args
SYSTEM AGGREGATE sys.prod
-SYSTEM FUNCTION sys.prod
+SYSTEM WINDOW sys.prod
SYSTEM FUNCTION sys.qgramnormalize
SYSTEM AGGREGATE sys.quantile
SYSTEM AGGREGATE sys.quantile_avg
@@ -656,7 +660,7 @@ SYSTEM PROCEDURE sys.querylog_ena
SYSTEM FUNCTION sys.queue
SYSTEM FUNCTION sys.radians
SYSTEM FUNCTION sys.rand
-SYSTEM FUNCTION sys.rank
+SYSTEM WINDOW sys.rank
SYSTEM FUNCTION sys.rejects
SYSTEM FUNCTION sys.remote_table_credentials
SYSTEM FUNCTION sys.repeat
@@ -670,7 +674,7 @@ SYSTEM FUNCTION sys.right_shift
SYSTEM FUNCTION sys.right_shift_assign
SYSTEM FUNCTION sys.rotate_xor_hash
SYSTEM FUNCTION sys.round
-SYSTEM FUNCTION sys.row_number
+SYSTEM WINDOW sys.row_number
SYSTEM FUNCTION sys.rowid
SYSTEM FUNCTION sys.rpad
SYSTEM FUNCTION sys.rtrim
@@ -807,9 +811,9 @@ SYSTEM FUNCTION sys.st_ymin
SYSTEM FUNCTION sys.st_z
SYSTEM FUNCTION sys.star
SYSTEM AGGREGATE sys.stddev_pop
-SYSTEM FUNCTION sys.stddev_pop
+SYSTEM WINDOW sys.stddev_pop
SYSTEM AGGREGATE sys.stddev_samp
-SYSTEM FUNCTION sys.stddev_samp
+SYSTEM WINDOW sys.stddev_samp
SYSTEM PROCEDURE sys.stop
SYSTEM PROCEDURE sys.stopsession
SYSTEM FUNCTION sys.storage
@@ -821,7 +825,7 @@ SYSTEM FUNCTION sys.strings
SYSTEM FUNCTION sys.substr
SYSTEM FUNCTION sys.substring
SYSTEM AGGREGATE sys.sum
-SYSTEM FUNCTION sys.sum
+SYSTEM WINDOW sys.sum
SYSTEM PROCEDURE sys.suspend_log_flushing
SYSTEM PROCEDURE sys.sys_update_schemas
SYSTEM PROCEDURE sys.sys_update_tables
@@ -840,12 +844,12 @@ SYSTEM FUNCTION sys.usweekofyear
SYSTEM FUNCTION sys.uuid
SYSTEM FUNCTION sys.var
SYSTEM AGGREGATE sys.var_pop
-SYSTEM FUNCTION sys.var_pop
+SYSTEM WINDOW sys.var_pop
SYSTEM AGGREGATE sys.var_samp
-SYSTEM FUNCTION sys.var_samp
+SYSTEM WINDOW sys.var_samp
SYSTEM FUNCTION sys.week
SYSTEM FUNCTION sys.weekofyear
-SYSTEM FUNCTION sys.window_bound
+SYSTEM WINDOW sys.window_bound
SYSTEM FUNCTION sys.xor
SYSTEM FUNCTION sys.year
SYSTEM AGGREGATE sys.zero_or_one
@@ -1013,6 +1017,11 @@ create function sys.debugflags() returns
create function sys.deltas ("schema" string) returns table ("id" int,
"cleared" boolean, "immutable" bigint, "inserted" bigint, "updates" bigint,
"deletes" bigint, "level" int) external name "sql"."deltas";
create function sys.deltas ("schema" string, "table" string) returns table
("id" int, "cleared" boolean, "immutable" bigint, "inserted" bigint, "updates"
bigint, "deletes" bigint, "level" int) external name "sql"."deltas";
create function sys.deltas ("schema" string, "table" string, "column" string)
returns table ("id" int, "cleared" boolean, "immutable" bigint, "inserted"
bigint, "updates" bigint, "deletes" bigint, "level" int) external name
"sql"."deltas";
+create function sys.describe_columns(schemaname string, tablename string)
returns table(name string, type string, digits integer, scale integer, nulls
boolean, cdefault string, number integer, sqltype string, remark string) begin
return select c.name, c."type", c.type_digits, c.type_scale, c."null",
c."default", c.number, describe_type(c."type", c.type_digits, c.type_scale),
com.remark from sys._tables t, sys.schemas s, sys._columns c left outer join
sys.comments com on c.id = com.id where c.table_id = t.id and t.name =
tablename and t.schema_id = s.id and s.name = schemaname order by c.number; end;
+create function sys.describe_function(schemaname string, functionname string)
returns table(id integer, name string, type string, language string, remark
string) begin return select f.id, f.name, ft.function_type_keyword,
fl.language_keyword, c.remark from sys.functions f join sys.schemas s on
f.schema_id = s.id join sys.function_types ft on f.type = ft.function_type_id
left outer join sys.function_languages fl on f.language = fl.language_id left
outer join sys.comments c on f.id = c.id where f.name=functionname and s.name =
schemaname; end;
+create function sys.describe_table(schemaname string, tablename string)
returns table(name string, query string, type string, id integer, remark
string) begin return select t.name, t.query, tt.table_type_name, t.id, c.remark
from sys.schemas s, sys.table_types tt, sys._tables t left outer join
sys.comments c on t.id = c.id where s.name = schemaname and t.schema_id = s.id
and t.name = tablename and t.type = tt.table_type_id; end;
+create function sys.describe_type(ctype string, digits integer, tscale
integer) returns string begin return case ctype when 'bigint' then 'BIGINT'
when 'blob' then case digits when 0 then 'BINARY LARGE OBJECT' else 'BINARY
LARGE OBJECT(' || digits || ')' end when 'boolean' then 'BOOLEAN' when 'char'
then case digits when 1 then 'CHARACTER' else 'CHARACTER(' || digits || ')' end
when 'clob' then case digits when 0 then 'CHARACTER LARGE OBJECT' else
'CHARACTER LARGE OBJECT(' || digits || ')' end when 'date' then 'DATE' when
'day_interval' then 'INTERVAL DAY' when ctype = 'decimal' then case when
(digits = 1 and tscale = 0) or digits = 0 then 'DECIMAL' when tscale = 0 then
'DECIMAL(' || digits || ')' when digits = 39 then 'DECIMAL(' || 38 || ',' ||
tscale || ')' when digits = 19 and (select count(*) = 0 from sys.types where
sqlname = 'hugeint') then 'DECIMAL(' || 18 || ',' || tscale || ')' else
'DECIMAL(' || digits || ',' || tscale || ')' end when 'double' then case when
digits = 53 an
d tscale = 0 then 'DOUBLE' when tscale = 0 then 'FLOAT(' || digits || ')' else
'FLOAT(' || digits || ',' || tscale || ')' end when 'geometry' then case digits
when 4 then 'GEOMETRY(POINT' || case tscale when 0 then '' else ',' || tscale
end || ')' when 8 then 'GEOMETRY(LINESTRING' || case tscale when 0 then '' else
',' || tscale end || ')' when 16 then 'GEOMETRY(POLYGON' || case tscale when 0
then '' else ',' || tscale end || ')' when 20 then 'GEOMETRY(MULTIPOINT' ||
case tscale when 0 then '' else ',' || tscale end || ')' when 24 then
'GEOMETRY(MULTILINESTRING' || case tscale when 0 then '' else ',' || tscale end
|| ')' when 28 then 'GEOMETRY(MULTIPOLYGON' || case tscale when 0 then '' else
',' || tscale end || ')' when 32 then 'GEOMETRY(GEOMETRYCOLLECTION' || case
tscale when 0 then '' else ',' || tscale end || ')' else 'GEOMETRY' end when
'hugeint' then 'HUGEINT' when 'int' then 'INTEGER' when 'month_interval' then
case digits when 1 then 'INTERVAL YEAR' when 2 then 'INTERVAL YEA
R TO MONTH' when 3 then 'INTERVAL MONTH' end when 'real' then case when digits
= 24 and tscale = 0 then 'REAL' when tscale = 0 then 'FLOAT(' || digits || ')'
else 'FLOAT(' || digits || ',' || tscale || ')' end when 'sec_interval' then
case digits when 4 then 'INTERVAL DAY' when 5 then 'INTERVAL DAY TO HOUR' when
6 then 'INTERVAL DAY TO MINUTE' when 7 then 'INTERVAL DAY TO SECOND' when 8
then 'INTERVAL HOUR' when 9 then 'INTERVAL HOUR TO MINUTE' when 10 then
'INTERVAL HOUR TO SECOND' when 11 then 'INTERVAL MINUTE' when 12 then 'INTERVAL
MINUTE TO SECOND' when 13 then 'INTERVAL SECOND' end when 'smallint' then
'SMALLINT' when 'time' then case digits when 1 then 'TIME' else 'TIME(' ||
(digits - 1) || ')' end when 'timestamp' then case digits when 7 then
'TIMESTAMP' else 'TIMESTAMP(' || (digits - 1) || ')' end when 'timestamptz'
then case digits when 7 then 'TIMESTAMP' else 'TIMESTAMP(' || (digits - 1) ||
')' end || ' WITH TIME ZONE' when 'timetz' then case digits when 1 then 'TIME'
els
e 'TIME(' || (digits - 1) || ')' end || ' WITH TIME ZONE' when 'tinyint' then
'TINYINT' when 'varchar' then 'CHARACTER VARYING(' || digits || ')' else case
when lower(ctype) = ctype then upper(ctype) else '"' || ctype || '"' end ||
case digits when 0 then '' else '(' || digits || case tscale when 0 then ''
else ',' || tscale end || ')' end end;
+end;
create procedure sys.droporderindex(sys string, tab string, col string)
external name sql.droporderindex;
CREATE FUNCTION env() RETURNS TABLE(name varchar(1024), value varchar(2048))
EXTERNAL NAME inspect."getEnvironment";
create function sys.epoch(sec bigint) returns timestamp with time zone
external name mtime.epoch;
@@ -1451,8 +1460,6 @@ select 'sys.privilege_codes', privilege_
select 'sys.dependency_types', dependency_type_id, dependency_type_name from
sys.dependency_types order by dependency_type_id, dependency_type_name;
-- drop helper function
drop function pcre_replace(string, string, string, string);
-#create function pcre_replace(origin string, pat string, repl string, flags
string) returns string external name pcre.replace;
-#select 'sys.schemas', name, authorization, owner, system from sys.schemas
order by name;
% .%1, sys.schemas, sys.schemas, sys.schemas, sys.schemas # table_name
% %1, name, authorization, owner, system # name
% char, varchar, int, int, boolean # type
@@ -1464,7 +1471,6 @@ drop function pcre_replace(string, strin
[ "sys.schemas", "tmp", 2, 3, true ]
[ "sys.schemas", "wlc", 3, 3, true ]
[ "sys.schemas", "wlr", 3, 3, true ]
-#select 'sys._tables', s.name, t.name,
replace(replace(pcre_replace(pcre_replace(t.query, E'--.*\n*', '', ''), E'[
\t\n]+', ' ', ''), '( ', '('), ' )', ')') as query, tt.table_type_name as type,
t.system, ca.action_name as commit_action, at.value as access from sys._tables
t left outer join sys.schemas s on t.schema_id = s.id left outer join
sys.table_types tt on t.type = tt.table_type_id left outer join (values (0,
'COMMIT'), (1, 'DELETE'), (2, 'PRESERVE'), (3, 'DROP'), (4, 'ABORT')) as ca
(action_id, action_name) on t.commit_action = ca.action_id left outer join
(values (0, 'WRITABLE'), (1, 'READONLY'), (2, 'APPENDONLY')) as at (id, value)
on t.access = at.id order by s.name, t.name;
% .%25, .s, .t, ., ., .t, ., . # table_name
% %25, name, name, query, type, system, commit_action, access # name
% char, varchar, varchar, varchar, varchar,
boolean, char, char # type
@@ -1562,7 +1568,6 @@ drop function pcre_replace(string, strin
[ "sys._tables", "tmp", "keys", NULL, "TABLE", true,
"PRESERVE", "WRITABLE" ]
[ "sys._tables", "tmp", "objects", NULL, "TABLE", true,
"PRESERVE", "WRITABLE" ]
[ "sys._tables", "tmp", "triggers", NULL, "TABLE", true,
"PRESERVE", "WRITABLE" ]
-#select 'sys._columns', t.name, c.name, c.type, c.type_digits, c.type_scale,
c."default", c."null", c.number, c.storage from sys._tables t, sys._columns c
where t.id = c.table_id order by t.name, c.number;
% .%1, sys.t, sys.c, sys.c, sys.c, sys.c, sys.c, sys.c, sys.c, sys.c #
table_name
% %1, name, name, type, type_digits, type_scale, default,
null, number, storage # name
% char, varchar, varchar, varchar, int, int,
varchar, boolean, int, varchar # type
@@ -2155,31 +2160,26 @@ drop function pcre_replace(string, strin
[ "sys._columns", "value_partitions", "value", "varchar",
2048, 0, NULL, true, 2, NULL ]
[ "sys._columns", "var_values", "var_name", "char", 16, 0,
NULL, true, 0, NULL ]
[ "sys._columns", "var_values", "value", "varchar", 1024,
0, NULL, true, 1, NULL ]
-#select 'sys.table_partitions', t.name, c.name, p.expression from
sys.table_partitions p left outer join sys._tables t on p.table_id = t.id left
outer join sys._columns c on p.column_id = c.id;
% .%1, .t, .c, .p # table_name
% %1, name, name, expression # name
% char, varchar, varchar, varchar # type
% 20, 0, 0, 0 # length
-#select 'sys.range_partitions', t.name, p.expression, r.minimum, r.maximum,
r.with_nulls from sys.range_partitions r left outer join sys._tables t on t.id
= r.table_id left outer join sys.table_partitions p on r.partition_id = p.id;
% .%1, .t, .p, .r, .r, .r # table_name
% %1, name, expression, minimum, maximum, with_nulls #
name
% char, varchar, varchar, varchar, varchar,
boolean # type
% 20, 0, 0, 0, 0, 5 # length
-#select 'sys.value_partitions', t.name, p.expression, v.value from
sys.value_partitions v left outer join sys._tables t on t.id = v.table_id left
outer join sys.table_partitions p on v.partition_id = p.id;
% .%1, .t, .p, .v # table_name
% %1, name, expression, value # name
% char, varchar, varchar, varchar # type
% 20, 0, 0, 0 # length
-#with funcs as (select name, pcre_replace(func, E'--.*\n*', '', '') as func,
schema_id from sys.functions), x (sname, name, modfunc) as (select s.name,
f.name, replace(pcre_replace(f.func, '.*external name (.*);.*', '$1', 'ims'),
'"', '') from funcs f left outer join sys.schemas s on f.schema_id = s.id where
f.func ilike '% external name %') select 'dangling external functions', * from
x where x.modfunc not in (select m.module || '.' || m."function" from
sys.malfunctions() m);
% .%10, .x, .x, .x # table_name
% %10, sname, name, modfunc # name
% char, varchar, varchar, varchar # type
% 27, 0, 0, 0 # length
-#select 'sys.functions', s.name, f.name, case f.system when true then 'SYSTEM'
else '' end as system,
replace(replace(replace(pcre_replace(pcre_replace(pcre_replace(f.func,
E'--.*\n', '', ''), E'[ \t\n]+', ' ', 'm'), '^ ', '', ''), '( ', '('), ' )',
')'), 'create system ', 'create ') as query, f.mod, fl.language_name,
ft.function_type_name as func_type, f.side_effect, f.varres, f.vararg,
f.semantics, a0.name as name0, a0.type as type0, a0.type_digits as
type_digits0, a0.type_scale as type_scale0, case a0.inout when 0 then 'out'
when 1 then 'in' end as inout0, a1.name as name1, a1.type as type1,
a1.type_digits as type_digits1, a1.type_scale as type_scale1, case a1.inout
when 0 then 'out' when 1 then 'in' end as inout1, a2.name as name2, a2.type as
type2, a2.type_digits as type_digits2, a2.type_scale as type_scale2, case
a2.inout when 0 then 'out' when 1 then 'in' end as inout2, a3.name as name3,
a3.type as type3, a3.type_digits as type_digits3, a3.type_scale as type_scale3,
case a3.i
nout when 0 then 'out' when 1 then 'in' end as inout3, a4.name as name4,
a4.type as type4, a4.type_digits as type_digits4, a4.type_scale as type_scale4,
case a4.inout when 0 then 'out' when 1 then 'in' end as inout4, a5.name as
name5, a5.type as type5, a5.type_digits as type_digits5, a5.type_scale as
type_scale5, case a5.inout when 0 then 'out' when 1 then 'in' end as inout5,
a6.name as name6, a6.type as type6, a6.type_digits as type_digits6,
a6.type_scale as type_scale6, case a6.inout when 0 then 'out' when 1 then 'in'
end as inout6, a7.name as name7, a7.type as type7, a7.type_digits as
type_digits7, a7.type_scale as type_scale7, case a7.inout when 0 then 'out'
when 1 then 'in' end as inout7, a8.name as name8, a8.type as type8,
a8.type_digits as type_digits8, a8.type_scale as type_scale8, case a8.inout
when 0 then 'out' when 1 then 'in' end as inout8, a9.name as name9, a9.type as
type9, a9.type_digits as type_digits9, a9.type_scale as type_scale9, case
a9.inout when 0 then 'out' wh
en 1 then 'in' end as inout9, a10.name as name10, a10.type as type10,
a10.type_digits as type_digits10, a10.type_scale as type_scale10, case
a10.inout when 0 then 'out' when 1 then 'in' end as inout10, a11.name as
name11, a11.type as type11, a11.type_digits as type_digits11, a11.type_scale as
type_scale11, case a11.inout when 0 then 'out' when 1 then 'in' end as inout11,
a12.name as name12, a12.type as type12, a12.type_digits as type_digits12,
a12.type_scale as type_scale12, case a12.inout when 0 then 'out' when 1 then
'in' end as inout12, a13.name as name13, a13.type as type13, a13.type_digits as
type_digits13, a13.type_scale as type_scale13, case a13.inout when 0 then 'out'
when 1 then 'in' end as inout13, a14.name as name14, a14.type as type14,
a14.type_digits as type_digits14, a14.type_scale as type_scale14, case
a14.inout when 0 then 'out' when 1 then 'in' end as inout14, a15.name as
name15, a15.type as type15, a15.type_digits as type_digits15, a15.type_scale as
type_scale15, c
ase a15.inout when 0 then 'out' when 1 then 'in' end as inout15 from
sys.functions f left outer join sys.schemas s on f.schema_id = s.id left outer
join sys.function_types as ft on f.type = ft.function_type_id left outer join
sys.function_languages fl on f.language = fl.language_id left outer join
sys.args a0 on a0.func_id = f.id and a0.number = 0 left outer join sys.args a1
on a1.func_id = f.id and a1.number = 1 left outer join sys.args a2 on
a2.func_id = f.id and a2.number = 2 left outer join sys.args a3 on a3.func_id =
f.id and a3.number = 3 left outer join sys.args a4 on a4.func_id = f.id and
a4.number = 4 left outer join sys.args a5 on a5.func_id = f.id and a5.number =
5 left outer join sys.args a6 on a6.func_id = f.id and a6.number = 6 left outer
join sys.args a7 on a7.func_id = f.id and a7.number = 7 left outer join
sys.args a8 on a8.func_id = f.id and a8.number = 8 left outer join sys.args a9
on a9.func_id = f.id and a9.number = 9 left outer join sys.args a10 on
a10.func_id
= f.id and a10.number = 10 left outer join sys.args a11 on a11.func_id = f.id
and a11.number = 11 left outer join sys.args a12 on a12.func_id = f.id and
a12.number = 12 left outer join sys.args a13 on a13.func_id = f.id and
a13.number = 13 left outer join sys.args a14 on a14.func_id = f.id and
a14.number = 14 left outer join sys.args a15 on a15.func_id = f.id and
a15.number = 15 order by s.name, f.name, query, func_type, name0 nulls first,
type0 nulls first, type_digits0 nulls first, type_scale0 nulls first, inout0
nulls first, name1 nulls first, type1 nulls first, type_digits1 nulls first,
type_scale1 nulls first, inout1 nulls first, name2 nulls first, type2 nulls
first, type_digits2 nulls first, type_scale2 nulls first, inout2 nulls first,
name3 nulls first, type3 nulls first, type_digits3 nulls first, type_scale3
nulls first, inout3 nulls first, name4 nulls first, type4 nulls first,
type_digits4 nulls first, type_scale4 nulls first, inout4 nulls first, name5
nulls first, type5 nu
lls first, type_digits5 nulls first, type_scale5 nulls first, inout5 nulls
first, name6 nulls first, type6 nulls first, type_digits6 nulls first,
type_scale6 nulls first, inout6 nulls first, name7 nulls first, type7 nulls
first, type_digits7 nulls first, type_scale7 nulls first, inout7 nulls first,
name8 nulls first, type8 nulls first, type_digits8 nulls first, type_scale8
nulls first, inout8 nulls first, name9 nulls first, type9 nulls first,
type_digits9 nulls first, type_scale9 nulls first, inout9 nulls first, name10
nulls first, type10 nulls first, type_digits10 nulls first, type_scale10 nulls
first, inout10 nulls first, name11 nulls first, type11 nulls first,
type_digits11 nulls first, type_scale11 nulls first, inout11 nulls first,
name12 nulls first, type12 nulls first, type_digits12 nulls first, type_scale12
nulls first, inout12 nulls first, name13 nulls first, type13 nulls first,
type_digits13 nulls first, type_scale13 nulls first, inout13 nulls first,
name14 nulls first, typ
e14 nulls first, type_digits14 nulls first, type_scale14 nulls first, inout14
nulls first, name15 nulls first, type15 nulls first, type_digits15 nulls first,
type_scale15 nulls first, inout15 nulls first;
% .%1, .s, .f, ., ., .f, .fl, ., .f, .f,
.f, .f, ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., ., ., ., ., ., ., ., ., .,
., . # table_name
% %1, name, name, system, query, mod, language_name, func_type,
side_effect, varres, vararg, semantics, name0, type0, type_digits0,
type_scale0, inout0, name1, type1, type_digits1, type_scale1, inout1,
name2, type2, type_digits2, type_scale2, inout2, name3, type3,
type_digits3, type_scale3, inout3, name4, type4, type_digits4,
type_scale4, inout4, name5, type5, type_digits5, type_scale5, inout5,
name6, type6, type_digits6, type_scale6, inout6, name7, type7,
type_digits7, type_scale7, inout7, name8, type8, type_digits8,
type_scale8, inout8, name9, type9, type_digits9, type_scale9, inout9,
name10, type10, type_digits10, type_scale10, inout10, name11, type11,
type_digits11, type_scale11, inout11, name12, type12, type_digits12,
type_scale12, inout12, name13, type13, type_digits13, type_scale13,
inout13, name14, type14, type_digits14, type_scale14, inout14,
name15, type15, type_digits15, type_scale15, inout15 # name
% char, varchar, varchar, char, varchar,
varchar, varchar, varchar, boolean, boolean,
boolean, boolean, varchar, varchar, int, int,
char, varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char, varchar, varchar, int, int, char,
varchar, varchar, int, int, char, varchar,
varchar, int, int, char, varchar, varchar, int,
int, char # type
-% 13, 8, 24, 6, 1362, 9, 10, 26, 5, 5,
5, 5, 11, 14, 4, 1, 3, 16, 14, 4,
1, 3, 16, 14, 4, 1, 3, 27, 12, 4,
1, 3, 9, 9, 2, 1, 3, 14, 14, 4,
1, 3, 12, 14, 3, 1, 3, 11, 7, 2,
1, 3, 11, 7, 2, 1, 3, 8, 6, 2,
1, 3, 6, 7, 2, 1, 3, 6, 7, 2,
1, 3, 8, 6, 2, 1, 3, 6, 7, 1,
1, 3, 9, 7, 1, 1, 3, 6, 7, 1,
1, 3 # length
+% 13, 8, 24, 6, 3342, 9, 10, 26, 5, 5,
5, 5, 11, 14, 4, 1, 3, 16, 14, 4,
1, 3, 16, 14, 4, 1, 3, 27, 12, 4,
1, 3, 9, 9, 2, 1, 3, 14, 14, 4,
1, 3, 12, 14, 3, 1, 3, 11, 7, 2,
1, 3, 11, 7, 2, 1, 3, 10, 6, 2,
1, 3, 9, 7, 2, 1, 3, 6, 7, 2,
1, 3, 8, 6, 2, 1, 3, 6, 7, 1,
1, 3, 9, 7, 1, 1, 3, 6, 7, 1,
1, 3 # length
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name bigint) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false,
false, true, "result", "json", 0, 0, "out", "js", "json",
0, 0, "in", "name", "bigint", 64, 0, "in", NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL ]
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name hugeint) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false, false,
true, "result", "json", 0, 0, "out", "js", "json", 0,
0, "in", "name", "hugeint", 128, 0, "in", NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL ]
[ "sys.functions", "json", "filter", "SYSTEM", "create
function json.filter(js json, name integer) returns json external name
json.filter;", "json", "MAL", "Scalar function", false, false, false,
true, "result", "json", 0, 0, "out", "js", "json", 0,
0, "in", "name", "int", 32, 0, "in", NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL ]
@@ -2447,6 +2447,10 @@ drop function pcre_replace(string, strin
[ "sys.functions", "sys", "deltas", "SYSTEM", "create
function sys.deltas (\"schema\" string, \"table\" string) returns table (\"id\"
int, \"cleared\" boolean, \"immutable\" bigint, \"inserted\" bigint,
\"updates\" bigint, \"deletes\" bigint, \"level\" int) external name
\"sql\".\"deltas\";", "sql", "MAL", "Function returning a table", false,
false, false, true, "id", "int", 32, 0, "out", "cleared",
"boolean", 1, 0, "out", "immutable", "bigint", 64,
0, "out", "inserted", "bigint", 64, 0, "out",
"updates", "bigint", 64, 0, "out", "deletes",
"bigint", 64, 0, "out", "level", "int", 32, 0,
"out", "schema", "clob", 0, 0, "in", "table", "clob",
0, 0, "in", NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL ]
[ "sys.functions", "sys", "deltas", "SYSTEM", "create
function sys.deltas (\"schema\" string, \"table\" string, \"column\" string)
returns table (\"id\" int, \"cleared\" boolean, \"immutable\" bigint,
\"inserted\" bigint, \"updates\" bigint, \"deletes\" bigint, \"level\" int)
external name \"sql\".\"deltas\";", "sql", "MAL", "Function returning a
table", false, false, false, true, "id", "int", 32, 0,
"out", "cleared", "boolean", 1, 0, "out", "immutable",
"bigint", 64, 0, "out", "inserted", "bigint", 64,
0, "out", "updates", "bigint", 64, 0, "out",
"deletes", "bigint", 64, 0, "out", "level", "int",
32, 0, "out", "schema", "clob", 0, 0, "in",
"table", "clob", 0, 0, "in", "column", "clob", 0,
0, "in", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL ]
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list