checkpoint 513#3: updated function visibility based on the function category document
diff --git a/asterix-app/src/test/resources/runtimets/queries/boolean/and_null/and_null.3.query.aql b/asterix-app/src/test/resources/runtimets/queries/boolean/and_null/and_null.3.query.aql
index 830ffe9..f49dbd7 100644
--- a/asterix-app/src/test/resources/runtimets/queries/boolean/and_null/and_null.3.query.aql
+++ b/asterix-app/src/test/resources/runtimets/queries/boolean/and_null/and_null.3.query.aql
@@ -1,5 +1,5 @@
use dataverse test;
-let $x := boolean("true")
+let $x := true
let $y := null
return $x and $y
diff --git a/asterix-app/src/test/resources/runtimets/queries/boolean/and_null_false/and_null_false.3.query.aql b/asterix-app/src/test/resources/runtimets/queries/boolean/and_null_false/and_null_false.3.query.aql
index 5e646a8..371246d 100644
--- a/asterix-app/src/test/resources/runtimets/queries/boolean/and_null_false/and_null_false.3.query.aql
+++ b/asterix-app/src/test/resources/runtimets/queries/boolean/and_null_false/and_null_false.3.query.aql
@@ -1,5 +1,5 @@
use dataverse test;
-let $x := boolean("false")
+let $x := false
let $y := null
return $x and $y
diff --git a/asterix-installer/ittest/asterix-lifecycle_backupRestore.adm b/asterix-installer/ittest/asterix-lifecycle_backupRestore.adm
index 1248b62..7ab7c16 100644
--- a/asterix-installer/ittest/asterix-lifecycle_backupRestore.adm
+++ b/asterix-installer/ittest/asterix-lifecycle_backupRestore.adm
@@ -1 +1 @@
-{ "DataverseName": "backupDataverse", "DataFormat": "edu.uci.ics.asterix.runtime.formats.NonTaggedDataFormat", "Timestamp": "Sun Jun 30 16:53:35 PDT 2013", "PendingOp": 0 }
+{ "DataverseName": "backupDataverse", "DataFormat": "edu.uci.ics.asterix.runtime.formats.NonTaggedDataFormat", "Timestamp": "Mon Jul 01 12:16:23 PDT 2013", "PendingOp": 0 }
diff --git a/asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java b/asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java
index ab975fd..7734d57 100644
--- a/asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java
+++ b/asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java
@@ -602,7 +602,7 @@
// and then, Asterix builtin functions
addPrivateFunction(NOT_NULL, NotNullTypeComputer.INSTANCE);
addPrivateFunction(ANY_COLLECTION_MEMBER, NonTaggedCollectionMemberResultType.INSTANCE);
- addPrivateFunction(AVG, OptionalADoubleTypeComputer.INSTANCE);
+ addFunction(AVG, OptionalADoubleTypeComputer.INSTANCE);
addFunction(BOOLEAN_CONSTRUCTOR, UnaryBooleanOrNullFunctionTypeComputer.INSTANCE);
addPrivateFunction(CARET, NonTaggedNumericAddSubMulDivTypeComputer.INSTANCE);
addFunction(CIRCLE_CONSTRUCTOR, OptionalACircleTypeComputer.INSTANCE);
@@ -610,12 +610,12 @@
addPrivateFunction(CONCAT_NON_NULL, ConcatNonNullTypeComputer.INSTANCE);
addFunction(CONTAINS, ABooleanTypeComputer.INSTANCE);
- addPrivateFunction(COUNT, AInt64TypeComputer.INSTANCE);
- addFunction(COUNTHASHED_GRAM_TOKENS, OrderedListOfAInt32TypeComputer.INSTANCE);
+ addFunction(COUNT, AInt64TypeComputer.INSTANCE);
+ addPrivateFunction(COUNTHASHED_GRAM_TOKENS, OrderedListOfAInt32TypeComputer.INSTANCE);
addPrivateFunction(COUNTHASHED_WORD_TOKENS, OrderedListOfAInt32TypeComputer.INSTANCE);
addFunction(CREATE_CIRCLE, ACircleTypeComputer.INSTANCE);
addFunction(CREATE_LINE, ALineTypeComputer.INSTANCE);
- addFunction(CREATE_MBR, ADoubleTypeComputer.INSTANCE);
+ addPrivateFunction(CREATE_MBR, ADoubleTypeComputer.INSTANCE);
addFunction(CREATE_POINT, APointTypeComputer.INSTANCE);
addFunction(CREATE_POLYGON, APolygonTypeComputer.INSTANCE);
addFunction(CREATE_RECTANGLE, ARectangleTypeComputer.INSTANCE);
@@ -671,9 +671,9 @@
addPrivateFunction(LOCAL_AVG, NonTaggedLocalAvgTypeComputer.INSTANCE);
addPrivateFunction(MAKE_FIELD_INDEX_HANDLE, null); // TODO
addPrivateFunction(MAKE_FIELD_NAME_HANDLE, null); // TODO
- addPrivateFunction(MAX, NonTaggedMinMaxAggTypeComputer.INSTANCE);
+ addFunction(MAX, NonTaggedMinMaxAggTypeComputer.INSTANCE);
addPrivateFunction(LOCAL_MAX, NonTaggedMinMaxAggTypeComputer.INSTANCE);
- addPrivateFunction(MIN, NonTaggedMinMaxAggTypeComputer.INSTANCE);
+ addFunction(MIN, NonTaggedMinMaxAggTypeComputer.INSTANCE);
addPrivateFunction(LOCAL_MIN, NonTaggedMinMaxAggTypeComputer.INSTANCE);
addPrivateFunction(NON_EMPTY_STREAM, ABooleanTypeComputer.INSTANCE);
addFunction(NULL_CONSTRUCTOR, ANullTypeComputer.INSTANCE);
@@ -787,7 +787,7 @@
}
});
addFunction(SUBSTRING, SubstringTypeComputer.INSTANCE);
- addPrivateFunction(SUM, NonTaggedNumericAggTypeComputer.INSTANCE);
+ addFunction(SUM, NonTaggedNumericAggTypeComputer.INSTANCE);
addPrivateFunction(LOCAL_SUM, NonTaggedNumericAggTypeComputer.INSTANCE);
addFunction(SWITCH_CASE, NonTaggedSwitchCaseComputer.INSTANCE);
addPrivateFunction(REG_EXP, ABooleanTypeComputer.INSTANCE);