Xikui Wang has uploaded a new patch set (#2). Change subject: [ASTERIXDB-2383][FUN] Deployed Functions ......................................................................
[ASTERIXDB-2383][FUN] Deployed Functions - user model changes: add deploy/invoke function stmts. - storage format changes: no - interface changes: no Details: 1. Enable deploy/invoke functions. 2. Add `cast-lax` to `get-job-param` so indexes can be used. 2. Refactor non-pure function call lookup in index selections so that function calls in assign can be picked up as well. 3. Bug fixes in deployed job txn id and positional query predicate. Change-Id: I3c5a2f4c458ea7e19632d9fb9b5cd77b4e64a71f --- M asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/base/RuleCollections.java A asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/IntroduceCastLaxForDeployedFunction.java M asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/AccessMethodUtils.java M asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/BTreeAccessMethod.java M asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/RTreeAccessMethod.java M asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java A asterixdb/asterix-app/src/main/java/org/apache/asterix/utils/DeployedFunctionUtils.java A asterixdb/asterix-app/src/test/resources/optimizerts/queries/deployed_function/deployed_function_non_key_lookup.sqlpp A asterixdb/asterix-app/src/test/resources/optimizerts/queries/deployed_function/deployed_function_primary_key_lookup.sqlpp A asterixdb/asterix-app/src/test/resources/optimizerts/queries/deployed_function/deployed_function_secondary_idx_lookup.sqlpp A asterixdb/asterix-app/src/test/resources/optimizerts/queries_sqlpp/deployed_function/deployed_function_non_key_lookup.sqlpp A asterixdb/asterix-app/src/test/resources/optimizerts/queries_sqlpp/deployed_function/deployed_function_primary_key_lookup.sqlpp A asterixdb/asterix-app/src/test/resources/optimizerts/queries_sqlpp/deployed_function/deployed_function_secondary_idx_lookup.sqlpp A asterixdb/asterix-app/src/test/resources/optimizerts/results/deployed_function/deployed_function_non_key_lookup.plan A asterixdb/asterix-app/src/test/resources/optimizerts/results/deployed_function/deployed_function_primary_key_lookup.plan A asterixdb/asterix-app/src/test/resources/optimizerts/results/deployed_function/deployed_function_secondary_idx_lookup.plan A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function/deployed_function.1.ddl.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function/deployed_function.2.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function/deployed_function.3.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function/deployed_function.4.query.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_non_key_lookup/deployed_function_non_key_lookup.1.ddl.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_non_key_lookup/deployed_function_non_key_lookup.2.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_non_key_lookup/deployed_function_non_key_lookup.3.query.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_non_key_lookup/deployed_function_non_key_lookup.4.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_primary_key_lookup/deployed_function_primary_key_lookup.1.ddl.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_primary_key_lookup/deployed_function_primary_key_lookup.2.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_primary_key_lookup/deployed_function_primary_key_lookup.3.query.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_primary_key_lookup/deployed_function_primary_key_lookup.4.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_secondary_idx_lookup/deployed_function_secondary_idx_lookup.1.ddl.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_secondary_idx_lookup/deployed_function_secondary_idx_lookup.2.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_secondary_idx_lookup/deployed_function_secondary_idx_lookup.3.query.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/deployed_function_secondary_idx_lookup/deployed_function_secondary_idx_lookup.4.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/type_inference/type_inference.1.ddl.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/type_inference/type_inference.2.update.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/user-defined-functions/type_inference/type_inference.3.query.sqlpp A asterixdb/asterix-app/src/test/resources/runtimets/results/user-defined-functions/deployed_function/deployed_function.1.adm M asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml M asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/base/Statement.java A asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/statement/DeployFunctionStatement.java A asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/statement/InvokeFunctionStatement.java M asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/util/FunctionUtil.java M asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/util/LangRecordParseUtil.java M asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/visitor/FormatPrintVisitor.java M asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/visitor/base/AbstractQueryExpressionVisitor.java M asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/visitor/base/ILangVisitor.java M asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj M asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/IFunctionManager.java M asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/GetJobParameterByNameDescriptor.java M asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/functions/FunctionManager.java M asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/job/listener/JobEventListenerFactory.java 50 files changed, 1,545 insertions(+), 28 deletions(-) git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/11/2611/2 -- To view, visit https://asterix-gerrit.ics.uci.edu/2611 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I3c5a2f4c458ea7e19632d9fb9b5cd77b4e64a71f Gerrit-PatchSet: 2 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Xikui Wang <xkk...@gmail.com> Gerrit-Reviewer: Anon. E. Moose #1000171 Gerrit-Reviewer: Jenkins <jenk...@fulliautomatix.ics.uci.edu>