private static void selectTest() throws StatementExecutionException, IoTDBConnectionException {
    SessionDataSet dataSet = session.executeQueryStatement("select ** from root.sg_1");
    LOGGER.info("columnNames = {}", dataSet.getColumnNames());
    while (dataSet.hasNext()) {
      LOGGER.info("data = {}", dataSet.next());
    }

    dataSet.closeOperationHandle();
  }
This example shows how to insert and select Hybrid Timeseries by session Hybrid Timeseries
includes Aligned Timeseries and Normal Timeseries
example/session/src/main/java/org/apache/iotdb/HybridTimeseriesSessionExample.java