@Test
  public void testShowTimeseries() throws MetadataException {
    prepareTimeseries();
    checkAliasAndTagsAndAttributes(
        "root.sg.wf01.wt01.v1.s1", null, Collections.emptyMap(), Collections.emptyMap());
    checkAliasAndTagsAndAttributes(
        "root.sg.wf01.wt01.v1.s2",
        "temp",
        new HashMap<String, String>() {
          {
            put("tag1", "t1");
            put("tag2", "t2");
          }
        },
        new HashMap<String, String>() {
          {
            put("attr1", "a1");
            put("attr2", "a2");
          }
        });
    checkAliasAndTagsAndAttributes(
        "root.sg.wf01.aligned_device1.s1", null, Collections.emptyMap(), Collections.emptyMap());
    checkAliasAndTagsAndAttributes(
        "root.sg.wf01.aligned_device1.s2", null, Collections.emptyMap(), Collections.emptyMap());
    checkAliasAndTagsAndAttributes(
        "root.sg.wf01.aligned_device2.s1",
        "alias1",
        new HashMap<String, String>() {
          {
            put("tag1", "t1");
          }
        },
        new HashMap<String, String>() {
          {
            put("attr1", "a1");
          }
        });
    checkAliasAndTagsAndAttributes(
        "root.sg.wf01.aligned_device2.s2",
        "alias2",
        new HashMap<String, String>() {
          {
            put("tag2", "t2");
          }
        },
        new HashMap<String, String>() {
          {
            put("attr2", "a2");
          }
        });
  }
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