You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2021/06/05 12:02:52 UTC

[iotdb] branch master updated: [WIP] Fix dictionary encoding test bug (#3357)

This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 73d37e6  [WIP] Fix dictionary encoding test bug (#3357)
73d37e6 is described below

commit 73d37e6fec1aac500222328e796030afd18351b6
Author: J.J. Liu <li...@gmail.com>
AuthorDate: Sat Jun 5 20:02:17 2021 +0800

    [WIP] Fix dictionary encoding test bug (#3357)
    
    Fix dictionary encoding test bug
---
 .../src/test/java/org/apache/iotdb/db/sql/Cases.java       | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/testcontainer/src/test/java/org/apache/iotdb/db/sql/Cases.java b/testcontainer/src/test/java/org/apache/iotdb/db/sql/Cases.java
index 67d355c..0dd74f8 100644
--- a/testcontainer/src/test/java/org/apache/iotdb/db/sql/Cases.java
+++ b/testcontainer/src/test/java/org/apache/iotdb/db/sql/Cases.java
@@ -137,13 +137,13 @@ public abstract class Cases {
 
     // test dictionary encoding
     writeStatement.execute(
-        "create timeseries root.ln.wf01.wt01.city WITH DATATYPE=TEXT, ENCODING=DICTIONARY");
+        "create timeseries root.ln.wf01.wt02.city WITH DATATYPE=TEXT, ENCODING=DICTIONARY");
     initDataArray =
         new String[] {
-          "INSERT INTO root.ln.wf01.wt01(timestamp, city) values(250, \"Nanjing\")",
-          "INSERT INTO root.ln.wf01.wt01(timestamp, city) values(300, \"Nanjing\")",
-          "INSERT INTO root.ln.wf01.wt01(timestamp, city) values(350, \"Singapore\")",
-          "INSERT INTO root.ln.wf01.wt01(timestamp, city) values(350, \"Shanghai\")"
+          "INSERT INTO root.ln.wf01.wt02(timestamp, city) values(250, \"Nanjing\")",
+          "INSERT INTO root.ln.wf01.wt02(timestamp, city) values(300, \"Nanjing\")",
+          "INSERT INTO root.ln.wf01.wt02(timestamp, city) values(350, \"Singapore\")",
+          "INSERT INTO root.ln.wf01.wt02(timestamp, city) values(400, \"Shanghai\")"
         };
     for (String initData : initDataArray) {
       writeStatement.execute(initData);
@@ -151,10 +151,10 @@ public abstract class Cases {
 
     String[] results = new String[] {"Nanjing", "Nanjing", "Singapore", "Shanghai"};
     for (Statement readStatement : readStatements) {
-      resultSet = readStatement.executeQuery("select * from root.ln.wf01.wt01");
+      resultSet = readStatement.executeQuery("select * from root.ln.wf01.wt02");
       int i = 0;
       while (resultSet.next()) {
-        Assert.assertEquals(results[i++], resultSet.getString("root.ln.wf01.wt01.city"));
+        Assert.assertEquals(results[i++], resultSet.getString("root.ln.wf01.wt02.city"));
       }
       Assert.assertFalse(resultSet.next());
       resultSet.close();