hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject incubator-hawq git commit: HAWQ-814. Enable parallel compilation of share library and remove create_function_1 from installcheck
Date Tue, 05 Jul 2016 04:29:35 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 831de3a6d -> 8f32e417e


HAWQ-814. Enable parallel compilation of share library and remove create_function_1 from installcheck


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/8f32e417
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/8f32e417
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/8f32e417

Branch: refs/heads/master
Commit: 8f32e417e0b58c2c2815b671b188af6f5d72fd5e
Parents: 831de3a
Author: Ruilong Huo <rhuo@pivotal.io>
Authored: Tue Jul 5 12:27:11 2016 +0800
Committer: Ruilong Huo <rhuo@pivotal.io>
Committed: Tue Jul 5 12:27:11 2016 +0800

----------------------------------------------------------------------
 src/test/feature/UDF/lib/Makefile               |  4 +-
 src/test/regress/input/create_function_1.source | 79 -------------------
 src/test/regress/known_good_schedule            |  1 -
 .../regress/output/create_function_1.source     | 82 --------------------
 4 files changed, 2 insertions(+), 164 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8f32e417/src/test/feature/UDF/lib/Makefile
----------------------------------------------------------------------
diff --git a/src/test/feature/UDF/lib/Makefile b/src/test/feature/UDF/lib/Makefile
index ccbf99b..f7c1879 100755
--- a/src/test/feature/UDF/lib/Makefile
+++ b/src/test/feature/UDF/lib/Makefile
@@ -27,12 +27,12 @@ TARGET = function.so
 
 RM = rm -rf 
 
-all: $(OBJS) $(TARGET)
+all: $(TARGET)
 
 $(OBJS): $(PROG)
 	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJS) $(PROG)
 
-$(TARGET):
+$(TARGET): $(OBJS)
 ifeq ($(OS),Darwin)
 	$(CXX) $(CXXFLAGS) -bundle $(OBJS) -bundle_loader $(POSTGRES) $(LDFLAGS) -o $@
 else

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8f32e417/src/test/regress/input/create_function_1.source
----------------------------------------------------------------------
diff --git a/src/test/regress/input/create_function_1.source b/src/test/regress/input/create_function_1.source
deleted file mode 100755
index 71c0fdd..0000000
--- a/src/test/regress/input/create_function_1.source
+++ /dev/null
@@ -1,79 +0,0 @@
---
--- CREATE_FUNCTION_1
---
-
-CREATE FUNCTION widget_in(cstring)
-   RETURNS widget
-   AS '@abs_builddir@/regress@DLSUFFIX@'
-   LANGUAGE C IMMUTABLE STRICT;
-
-CREATE FUNCTION widget_out(widget)
-   RETURNS cstring
-   AS '@abs_builddir@/regress@DLSUFFIX@'
-   LANGUAGE C IMMUTABLE STRICT;
-
-CREATE FUNCTION int44in(cstring)
-   RETURNS city_budget
-   AS '@abs_builddir@/regress@DLSUFFIX@'
-   LANGUAGE C IMMUTABLE STRICT;
-
-CREATE FUNCTION int44out(city_budget)
-   RETURNS cstring
-   AS '@abs_builddir@/regress@DLSUFFIX@'
-   LANGUAGE C IMMUTABLE STRICT;
-
-CREATE FUNCTION check_primary_key ()
-	RETURNS trigger
-	AS '@abs_builddir@/regress@DLSUFFIX@'
-	LANGUAGE C;
-
-CREATE FUNCTION check_foreign_key ()
-	RETURNS trigger
-	AS '@abs_builddir@/regress@DLSUFFIX@'
-	LANGUAGE C;
-
-CREATE FUNCTION autoinc ()
-	RETURNS trigger
-	AS '@abs_builddir@/regress@DLSUFFIX@'
-	LANGUAGE C;
-
-CREATE FUNCTION funny_dup17 ()
-        RETURNS trigger
-        AS '@abs_builddir@/regress@DLSUFFIX@'
-        LANGUAGE C;
-
-CREATE FUNCTION ttdummy ()
-        RETURNS trigger
-        AS '@abs_builddir@/regress@DLSUFFIX@'
-        LANGUAGE C;
-
-CREATE FUNCTION set_ttdummy (int4)
-        RETURNS int4
-        AS '@abs_builddir@/regress@DLSUFFIX@'
-        LANGUAGE C STRICT;
-
--- Things that shouldn't work:
-
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'SELECT ''not an integer'';';
-
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'not even SQL';
-
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'SELECT 1, 2, 3;';
-
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'SELECT $2;';
-
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'a', 'b';
-
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C
-    AS 'nosuchfile';
-
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C
-    AS '@abs_builddir@/regress@DLSUFFIX@', 'nosuchsymbol';
-
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE internal
-    AS 'nosuch';

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8f32e417/src/test/regress/known_good_schedule
----------------------------------------------------------------------
diff --git a/src/test/regress/known_good_schedule b/src/test/regress/known_good_schedule
index bb14fa2..9e393ec 100755
--- a/src/test/regress/known_good_schedule
+++ b/src/test/regress/known_good_schedule
@@ -57,7 +57,6 @@ ignore: oidjoins
 ignore: opr_sanity
 ignore: geometry
 ignore: horology
-test: create_function_1
 test: subplan
 ignore: create_type
 test: create_table_test

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8f32e417/src/test/regress/output/create_function_1.source
----------------------------------------------------------------------
diff --git a/src/test/regress/output/create_function_1.source b/src/test/regress/output/create_function_1.source
deleted file mode 100755
index 12408fd..0000000
--- a/src/test/regress/output/create_function_1.source
+++ /dev/null
@@ -1,82 +0,0 @@
---
--- CREATE_FUNCTION_1
---
-CREATE FUNCTION widget_in(cstring)
-   RETURNS widget
-   AS '@abs_builddir@/regress@DLSUFFIX@'
-   LANGUAGE C IMMUTABLE STRICT;
-NOTICE:  type "widget" is not yet defined
-DETAIL:  Creating a shell type definition.
-CREATE FUNCTION widget_out(widget)
-   RETURNS cstring
-   AS '@abs_builddir@/regress@DLSUFFIX@'
-   LANGUAGE C IMMUTABLE STRICT;
-NOTICE:  argument type widget is only a shell
-CREATE FUNCTION int44in(cstring)
-   RETURNS city_budget
-   AS '@abs_builddir@/regress@DLSUFFIX@'
-   LANGUAGE C IMMUTABLE STRICT;
-NOTICE:  type "city_budget" is not yet defined
-DETAIL:  Creating a shell type definition.
-CREATE FUNCTION int44out(city_budget)
-   RETURNS cstring
-   AS '@abs_builddir@/regress@DLSUFFIX@'
-   LANGUAGE C IMMUTABLE STRICT;
-NOTICE:  argument type city_budget is only a shell
-CREATE FUNCTION check_primary_key ()
-	RETURNS trigger
-	AS '@abs_builddir@/regress@DLSUFFIX@'
-	LANGUAGE C;
-CREATE FUNCTION check_foreign_key ()
-	RETURNS trigger
-	AS '@abs_builddir@/regress@DLSUFFIX@'
-	LANGUAGE C;
-CREATE FUNCTION autoinc ()
-	RETURNS trigger
-	AS '@abs_builddir@/regress@DLSUFFIX@'
-	LANGUAGE C;
-CREATE FUNCTION funny_dup17 ()
-        RETURNS trigger
-        AS '@abs_builddir@/regress@DLSUFFIX@'
-        LANGUAGE C;
-CREATE FUNCTION ttdummy ()
-        RETURNS trigger
-        AS '@abs_builddir@/regress@DLSUFFIX@'
-        LANGUAGE C;
-CREATE FUNCTION set_ttdummy (int4)
-        RETURNS int4
-        AS '@abs_builddir@/regress@DLSUFFIX@'
-        LANGUAGE C STRICT;
--- Things that shouldn't work:
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'SELECT ''not an integer'';';
-ERROR:  return type mismatch in function declared to return integer
-DETAIL:  Actual return type is unknown.
-CONTEXT:  SQL function "test1"
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'not even SQL';
-ERROR:  syntax error at or near "not"
-LINE 2:     AS 'not even SQL';
-                ^
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'SELECT 1, 2, 3;';
-ERROR:  return type mismatch in function declared to return integer
-DETAIL:  Final SELECT must return exactly one column.
-CONTEXT:  SQL function "test1"
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'SELECT $2;';
-ERROR:  there is no parameter $2
-LINE 2:     AS 'SELECT $2;';
-                       ^
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
-    AS 'a', 'b';
-ERROR:  only one AS item needed for language "sql"
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C
-    AS 'nosuchfile';
-ERROR:  could not access file "nosuchfile": No such file or directory
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C
-    AS '@abs_builddir@/regress@DLSUFFIX@', 'nosuchsymbol';
-ERROR:  could not find function "nosuchsymbol" in file "@abs_builddir@/regress@DLSUFFIX@"
-CREATE FUNCTION test1 (int) RETURNS int LANGUAGE internal
-    AS 'nosuch';
-ERROR:  there is no built-in function named "nosuch"


Mime
View raw message