MarcosZyk opened a new pull request, #9679:
URL: https://github.com/apache/iotdb/pull/9679

   ## Description
   
   
   ### Problem Description
   
   NPE occurs when executing the following instructions.
   ``` sql
   create schema template t1(s1 int32, s2 int32)
   
   create database root.db
   
   set schema template to root.db
   
   insert into root.db.d1(time, s1, s2) values(1, 1, 1)
   
   select s1, s2 into root.::(t1, t2) from root.db.d1
   
   ```
   
   ### Cause and Solution
   
   When fetch schema from DataNodeTemplateSchemaCache, there's no measurement 
existence check before taking the measurement from template, and this causes 
the NPE. 
   
   Add existence check to fix it.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to