This is an automated email from the ASF dual-hosted git repository. geniuspig pushed a commit to branch add_plus in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 5a5ace6865408e2b188a0ad12ced06ec6cf1c706 Author: zhutianci <[email protected]> AuthorDate: Mon May 25 12:48:37 2020 +0800 add plus. --- server/src/main/antlr4/org/apache/iotdb/db/qp/strategy/SqlBase.g4 | 1 + server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/antlr4/org/apache/iotdb/db/qp/strategy/SqlBase.g4 b/server/src/main/antlr4/org/apache/iotdb/db/qp/strategy/SqlBase.g4 index d119c41..76293b9 100644 --- a/server/src/main/antlr4/org/apache/iotdb/db/qp/strategy/SqlBase.g4 +++ b/server/src/main/antlr4/org/apache/iotdb/db/qp/strategy/SqlBase.g4 @@ -945,6 +945,7 @@ NAME_CHAR | '$' | '%' | '&' + | '+' | CN_CHAR ; diff --git a/server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java b/server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java index ce47702..7198a15 100644 --- a/server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java +++ b/server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java @@ -799,7 +799,7 @@ public class PhysicalPlanTest { @Test public void testSpecialCharacters() throws QueryProcessException { - String sqlStr1 = "create timeseries root.3e-3.-1.1/2.SNAPPY.RLE with datatype=FLOAT, encoding=RLE, compression=SNAPPY tags(tag1=v1, tag2=v2) attributes(attr1=v1, attr2=v2)"; + String sqlStr1 = "create timeseries root.3e-3.-1.1/2.SNAPPY.RLE.81+12 with datatype=FLOAT, encoding=RLE, compression=SNAPPY tags(tag1=v1, tag2=v2) attributes(attr1=v1, attr2=v2)"; PhysicalPlan plan1 = processor.parseSQLToPhysicalPlan(sqlStr1); Assert.assertEquals(OperatorType.CREATE_TIMESERIES, plan1.getOperatorType()); }
