private void prepareTimeseries() throws MetadataException {
    SchemaRegionTestUtil.createTimeseries(
        schemaRegion,
        "root.sg.wf01.wt01.v1.s1",
        TSDataType.BOOLEAN,
        TSEncoding.PLAIN,
        CompressionType.SNAPPY,
        null,
        null,
        null,
        null);
    SchemaRegionTestUtil.createTimeseries(
        schemaRegion,
        "root.sg.wf01.wt01.v1.s2",
        TSDataType.FLOAT,
        TSEncoding.RLE,
        CompressionType.GZIP,
        null,
        new HashMap<String, String>() {
          {
            put("tag1", "t1");
            put("tag2", "t2");
          }
        },
        new HashMap<String, String>() {
          {
            put("attr1", "a1");
            put("attr2", "a2");
          }
        },
        "temp");
    SchemaRegionTestUtil.createAlignedTimeseries(
        schemaRegion,
        "root.sg.wf01.aligned_device1",
        Arrays.asList("s1", "s2"),
        Arrays.asList(TSDataType.INT64, TSDataType.INT32),
        Arrays.asList(TSEncoding.PLAIN, TSEncoding.RLE),
        Arrays.asList(CompressionType.SNAPPY, CompressionType.LZ4),
        null,
        null,
        null);
    SchemaRegionTestUtil.createAlignedTimeseries(
        schemaRegion,
        "root.sg.wf01.aligned_device2",
        Arrays.asList("s1", "s2"),
        Arrays.asList(TSDataType.INT64, TSDataType.INT32),
        Arrays.asList(TSEncoding.PLAIN, TSEncoding.RLE),
        Arrays.asList(CompressionType.SNAPPY, CompressionType.LZ4),
        Arrays.asList(
            new HashMap<String, String>() {
              {
                put("tag1", "t1");
              }
            },
            new HashMap<String, String>() {
              {
                put("tag2", "t2");
              }
            }),
        Arrays.asList(
            new HashMap<String, String>() {
              {
                put("attr1", "a1");
              }
            },
            new HashMap<String, String>() {
              {
                put("attr2", "a2");
              }
            }),
        Arrays.asList("alias1", "alias2"));
  }
Prepare timeseries

<p>"root.sg.wf01.wt01.v1.s1" without tags, attributes and alias

<p>"root.sg.wf01.wt01.v1.s2" with tags, attributes and alias

<p>"root.sg.wf01.aligned_device1.(s1,s2)" aligned without tags, attributes and alias

<p>"root.sg.wf01.aligned_device2.(s1,s2)" aligned with tags, attributes and alias
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/metadata/schemaRegion/SchemaRegionAliasAndTagTest.java