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

   ## Description
   
   
   ### Reproduce: 
   ```sql
   create device template t1 aligned (temperature FLOAT encoding=Gorilla, 
status BOOLEAN encoding=PLAIN);
   show device templates;
   show nodes in device template t1;
   set device template t1 to root.sg.aligned_template;
   show paths set device template t1;
   create timeseries using device template on root.sg.aligned_template;
   show paths using device template t1;
   
   insert into root.sg.aligned_template(time,temperature,status) 
values(1,20,false),(2,22.1,true),(3,18,false);
   
   CREATE USER user03 'pass1234';
   
   LIST PRIVILEGES OF USER `user03`;
   
   GRANT READ_DATA ON root.sg.aligned_template.temperature TO USER user03;
   ```
   then log in with user03:
   ```sql
   [root@xzh-97 iotdb-enterprise-1.3.2-SNAPSHOT-bin]# ./sbin/start-cli.sh -u 
user03 -pw pass1234
   ---------------------
   Starting IoTDB Cli
   ---------------------
    _____       _________  ______   ______    
   |_   _|     |  _   _  ||_   _ `.|_   _ \   
     | |   .--.|_/ | | \_|  | | `. \ | |_) |  
     | | / .'`\ \  | |      | |  | | |  __'.  
    _| |_| \__. | _| |_    _| |_.' /_| |__) | 
   |_____|'.__.' |_____|  |______.'|_______/  Enterprise version 1.3.2-SNAPSHOT 
(Build: 2fa45f5)
                                              Successfully login at 
127.0.0.1:6667
   IoTDB> list privileges of user user03;
   +----+------------------------------------+----------+-----------+
   |Role|                                Path|Privileges|GrantOption|
   +----+------------------------------------+----------+-----------+
   |    |root.sg.aligned_template.temperature| READ_DATA|      false|
   +----+------------------------------------+----------+-----------+
   Total line number = 1
   It costs 0.053s
   IoTDB> select * from root.sg.aligned_template;
   
+-----------------------------+------------------------------------+-------------------------------+
   |                         
Time|root.sg.aligned_template.temperature|root.sg.aligned_template.status|
   
+-----------------------------+------------------------------------+-------------------------------+
   |1970-01-01T08:00:00.001+08:00|                                20.0|         
                 false|
   |1970-01-01T08:00:00.002+08:00|                                22.1|         
                  true|
   |1970-01-01T08:00:00.003+08:00|                                18.0|         
                 false|
   
+-----------------------------+------------------------------------+-------------------------------+
   Total line number = 3
   It costs 0.016s
   ```
   
   
   ### solution:
   when fetch schema without template, SchemaFetchExecutor should not check 
template cache.


-- 
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