yanze chen created IOTDB-5247: --------------------------------- Summary: [SchemaFile] Drop tags or attributes throw NPE Key: IOTDB-5247 URL: https://issues.apache.org/jira/browse/IOTDB-5247 Project: Apache IoTDB Issue Type: Bug Reporter: yanze chen Assignee: yanze chen
Reproduce: {code:java} // SchemaRegionAliasAndTagTest.java @Test public void testDropTagsOrAttributes() { try { prepareTimeseries(); Set<String> keySet = new HashSet<>(Arrays.asList("tag1", "tag2", "attr1", "attr2")); List<String> fullPaths = Arrays.asList( "root.sg.wf01.wt01.v1.s1", "root.sg.wf01.wt01.v1.s2", "root.sg.wf01.aligned_device1.s1", "root.sg.wf01.aligned_device1.s2", "root.sg.wf01.aligned_device2.s1", "root.sg.wf01.aligned_device2.s2"); for (String fullPath : fullPaths) { schemaRegion.dropTagsOrAttributes(keySet, new PartialPath(fullPath)); checkTags(fullPath, Collections.emptyMap()); checkAttributes(fullPath, Collections.emptyMap()); } } catch (Exception e) { logger.error(e.getMessage(), e); Assert.fail(e.getMessage()); } } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)