This is an automated email from the ASF dual-hosted git repository.
xikui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb-bad.git
The following commit(s) were added to refs/heads/master by this push:
new d1df64d Coordinated Change for Specify Node Group in Dataset WITH
Record
d1df64d is described below
commit d1df64d1c54e668e50daaddb86471bae01565894
Author: Xikui Wang <[email protected]>
AuthorDate: Wed Aug 26 14:53:47 2020 -0700
Coordinated Change for Specify Node Group in Dataset WITH Record
Change-Id: I90eb7f81c15805269ddd120a0a9885ffe1a549ee
---
.../asterix/bad/lang/statement/AbstractCreateChannelStatement.java | 4 ++--
asterix-bad/src/main/resources/lang-extension/lang.txt | 3 ---
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git
a/asterix-bad/src/main/java/org/apache/asterix/bad/lang/statement/AbstractCreateChannelStatement.java
b/asterix-bad/src/main/java/org/apache/asterix/bad/lang/statement/AbstractCreateChannelStatement.java
index 3020cb0..43f11fd 100644
---
a/asterix-bad/src/main/java/org/apache/asterix/bad/lang/statement/AbstractCreateChannelStatement.java
+++
b/asterix-bad/src/main/java/org/apache/asterix/bad/lang/statement/AbstractCreateChannelStatement.java
@@ -140,7 +140,7 @@ public abstract class AbstractCreateChannelStatement
extends ExtensionStatement
TypeExpression subItemType = new TypeReferenceExpression(
new Pair<>(MetadataConstants.METADATA_DATAVERSE_NAME,
subscriptionsTypeName));
DatasetDecl createSubscriptionsDataset = new
DatasetDecl(dataverseName, new Identifier(subscriptionsTableName),
- subItemType, null, null, new HashMap<>(),
DatasetType.INTERNAL, idd, null, true);
+ subItemType, null, new HashMap<>(), DatasetType.INTERNAL, idd,
null, true);
((QueryTranslator)
statementExecutor).handleCreateDatasetStatement(metadataProvider,
createSubscriptionsDataset,
hcc, null);
@@ -155,7 +155,7 @@ public abstract class AbstractCreateChannelStatement
extends ExtensionStatement
TypeExpression resultItemType =
new TypeReferenceExpression(new
Pair<>(MetadataConstants.METADATA_DATAVERSE_NAME, resultsTypeName));
DatasetDecl createResultsDataset = new DatasetDecl(dataverseName,
new Identifier(resultsTableName),
- resultItemType, null, null, new HashMap<>(),
DatasetType.INTERNAL, idd, null, true);
+ resultItemType, null, new HashMap<>(),
DatasetType.INTERNAL, idd, null, true);
//Create an index on timestamp for results
CreateIndexStatement createTimeIndex = new CreateIndexStatement();
diff --git a/asterix-bad/src/main/resources/lang-extension/lang.txt
b/asterix-bad/src/main/resources/lang-extension/lang.txt
index f2b6410..8b8c507 100644
--- a/asterix-bad/src/main/resources/lang-extension/lang.txt
+++ b/asterix-bad/src/main/resources/lang-extension/lang.txt
@@ -129,7 +129,6 @@ DatasetDecl ActiveDatasetSpecification(Token
startStmtToken) throws ParseExcepti
boolean ifNotExists = false;
Map<String,String> properties = null;
Pair<List<Integer>, List<List<String>>> primaryKeyFields = null;
- String nodeGroupName = null;
Map<String,String> hints = new HashMap<String,String>();
DatasetDecl stmt = null;
boolean autogenerated = false;
@@ -142,7 +141,6 @@ DatasetDecl ActiveDatasetSpecification(Token
startStmtToken) throws ParseExcepti
ifNotExists = IfNotExists()
primaryKeyFields = PrimaryKey()
(<AUTOGENERATED> { autogenerated = true; } )?
- (<ON> nodeGroupName = Identifier() )?
( <HINTS> hints = Properties() )?
( <WITH> withRecord = RecordConstructor() )?
{
@@ -156,7 +154,6 @@ DatasetDecl ActiveDatasetSpecification(Token
startStmtToken) throws ParseExcepti
nameComponents.second,
datasetTypeExpr,
activeRecordTypeExpr,
- nodeGroupName != null ? new
Identifier(nodeGroupName) : null,
hints,
DatasetType.INTERNAL,
idd,