@Test
  public void testIllegalInput() {
    try (Connection connection = EnvFactory.getEnv().getConnection();
        Statement statement = connection.createStatement()) {
      statement.execute("create timeseries root.sg2.d.s1 with datatype=INT64");
      assertThrows(
          "Unsupported datatype: UNKNOWN",
          SQLException.class,
          () -> statement.execute("create timeseries root.sg2.d.s1 with datatype=UNKNOWN"));
      assertThrows(
          "Unsupported datatype: VECTOR",
          SQLException.class,
          () -> statement.execute("create timeseries root.sg2.d.s1 with datatype=VECTOR"));
      assertThrows(
          "Unsupported datatype: YES",
          SQLException.class,
          () -> statement.execute("create timeseries root.sg2.d.s1 with datatype=YES"));
      assertThrows(
          "Unsupported datatype: UNKNOWN",
          SQLException.class,
          () -> statement.execute("create device template t1 (s1 UNKNOWN, s2 boolean)"));
      assertThrows(
          "Unsupported datatype: VECTOR",
          SQLException.class,
          () -> statement.execute("create device template t1 (s1 VECTOR, s2 boolean)"));
    } catch (SQLException ignored) {
      fail();
    }
  }
Test if creating a time series will cause the database with same name to disappear
integration-test/src/test/java/org/apache/iotdb/db/it/schema/IoTDBCreateTimeseriesIT.java