asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xi...@apache.org
Subject asterixdb git commit: ASTERIXDB 1860 Fix dataset validation in connect feed
Date Mon, 27 Mar 2017 17:25:07 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 8e9474465 -> 9163e20cb


ASTERIXDB 1860 Fix dataset validation in connect feed

Fix the bug that dataset existence is not checked in connect feed.

Change-Id: I245c42536b6a1b38ef2e8c724cf0bb64df72e4dc
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1620
Reviewed-by: abdullah alamoudi <bamousaa@gmail.com>
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/9163e20c
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/9163e20c
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/9163e20c

Branch: refs/heads/master
Commit: 9163e20cb5462e109fb4670e536065dd061e232f
Parents: 8e94744
Author: Xikui Wang <xkkwww@gmail.com>
Authored: Sun Mar 26 18:48:16 2017 -0700
Committer: Xikui Wang <xkkwww@gmail.com>
Committed: Mon Mar 27 10:24:47 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/asterix/app/translator/QueryTranslator.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/9163e20c/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
index 74efb6c..4ed8510 100644
--- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
+++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/QueryTranslator.java
@@ -2111,6 +2111,7 @@ public class QueryTranslator extends AbstractLangTranslator implements
IStatemen
         MetadataTransactionContext mdTxnCtx = MetadataManager.INSTANCE.beginTransaction();
         metadataProvider.setMetadataTxnContext(mdTxnCtx);
         // validation
+        FeedMetadataUtil.validateIfDatasetExists(dataverseName, datasetName, mdTxnCtx);
         Feed feed = FeedMetadataUtil.validateIfFeedExists(dataverseName, feedName,
                 metadataProvider.getMetadataTxnContext());
         ARecordType outputType = FeedMetadataUtil.getOutputType(feed, feed.getAdapterConfiguration(),


Mime
View raw message