This is an automated email from the ASF dual-hosted git repository. qiaojialin pushed a commit to branch rel/0.10 in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 7415bad47cd584c216c8c07d3e011ea128975423 Author: HTHou <[email protected]> AuthorDate: Mon Aug 3 17:03:57 2020 +0800 add a test --- .../iotdb/db/integration/IoTDBSimpleQueryIT.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java index 05bfd78..d94e20d 100644 --- a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java +++ b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java @@ -317,4 +317,24 @@ public class IoTDBSimpleQueryIT { } } + @Test + public void testTimeseriesMetadataCache() throws ClassNotFoundException { + Class.forName(Config.JDBC_DRIVER_NAME); + try (Connection connection = DriverManager + .getConnection(Config.IOTDB_URL_PREFIX + "127.0.0.1:6667/", + "root", "root"); + Statement statement = connection.createStatement()) { + statement.execute("SET STORAGE GROUP TO root.sg1"); + for (int i = 0; i < 10000; i++) { + statement.execute("CREATE TIMESERIES root.sg1.d0.s"+ i + " WITH DATATYPE=INT32,ENCODING=PLAIN"); + } + for (int i = 1; i < 10000; i++) { + statement.execute("INSERT INTO root.sg1.d0(timestamp, s" + i + ") VALUES (1000, 1)"); + } + statement.execute("flush"); + statement.executeQuery("select s0 from root.sg1.d0"); + } catch (SQLException e) { + fail(); + } + } }
