Changeset: cb7baecbe362 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cb7baecbe362 Added Files: sql/backends/monet5/UDF/80_udf_hge.mal sql/backends/monet5/UDF/80_udf_hge.sql sql/backends/monet5/UDF/udf_hge.mal Branch: int128 Log Message:
finished changeset 332adf4d19af: added missing (new) files diffs (89 lines): diff --git a/sql/backends/monet5/UDF/80_udf_hge.mal b/sql/backends/monet5/UDF/80_udf_hge.mal new file mode 100644 --- /dev/null +++ b/sql/backends/monet5/UDF/80_udf_hge.mal @@ -0,0 +1,20 @@ +# The contents of this file are subject to the MonetDB Public License +# Version 1.1 (the "License"); you may not use this file except in +# compliance with the License. You may obtain a copy of the License at +# http://www.monetdb.org/Legal/MonetDBLicense +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +# License for the specific language governing rights and limitations +# under the License. +# +# The Original Code is the MonetDB Database System. +# +# The Initial Developer of the Original Code is CWI. +# Portions created by CWI are Copyright (C) 1997-July 2008 CWI. +# Copyright August 2008-2014 MonetDB B.V. +# All Rights Reserved. + +# This announces the UDF module to the MAL interpreter + +include udf_hge; diff --git a/sql/backends/monet5/UDF/80_udf_hge.sql b/sql/backends/monet5/UDF/80_udf_hge.sql new file mode 100644 --- /dev/null +++ b/sql/backends/monet5/UDF/80_udf_hge.sql @@ -0,0 +1,23 @@ +-- The contents of this file are subject to the MonetDB Public License +-- Version 1.1 (the "License"); you may not use this file except in +-- compliance with the License. You may obtain a copy of the License at +-- http://www.monetdb.org/Legal/MonetDBLicense +-- +-- Software distributed under the License is distributed on an "AS IS" +-- basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +-- License for the specific language governing rights and limitations +-- under the License. +-- +-- The Original Code is the MonetDB Database System. +-- +-- The Initial Developer of the Original Code is CWI. +-- Portions created by CWI are Copyright (C) 1997-July 2008 CWI. +-- Copyright August 2008-2014 MonetDB B.V. +-- All Rights Reserved. + +-- add function signatures to SQL catalog + + +-- fuse two (8-byte) integer values into one (16-byte) bigint value +create function fuse(one bigint, two bigint) +returns hugeint external name udf.fuse; diff --git a/sql/backends/monet5/UDF/udf_hge.mal b/sql/backends/monet5/UDF/udf_hge.mal new file mode 100644 --- /dev/null +++ b/sql/backends/monet5/UDF/udf_hge.mal @@ -0,0 +1,31 @@ +# The contents of this file are subject to the MonetDB Public License +# Version 1.1 (the "License"); you may not use this file except in +# compliance with the License. You may obtain a copy of the License at +# http://www.monetdb.org/Legal/MonetDBLicense +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +# License for the specific language governing rights and limitations +# under the License. +# +# The Original Code is the MonetDB Database System. +# +# The Initial Developer of the Original Code is CWI. +# Portions created by CWI are Copyright (C) 1997-July 2008 CWI. +# Copyright August 2008-2014 MonetDB B.V. +# All Rights Reserved. + +# scalar MAL signatures +module udf; + +command fuse(one:lng,two:lng):hge +address UDFfuse_lng_hge +comment "fuse two (8-byte) lng values into one (16-byte) hge value"; + + +# BAT MAL signatures +module batudf; + +command fuse(one:bat[:oid,:lng],two:bat[:oid,:lng]):bat[:oid,:hge] +address UDFBATfuse +comment "fuse two (8-byte) lng values into one (16-byte) hge value"; _______________________________________________ checkin-list mailing list [email protected] https://www.monetdb.org/mailman/listinfo/checkin-list
