Young-Leo opened a new pull request, #17053:
URL: https://github.com/apache/iotdb/pull/17053

   This fixes a table-model issue where NULL-related predicates fail only
   when the table has no TAG columns, while the same predicates work when
   TAG columns exist.
   
   ## Repro (table model)
   
   ### Table without TAG (used to fail)
   ```sql
   CREATE TABLE test_table_no_tag(
     id INT32 FIELD,
     name STRING FIELD,
     value DOUBLE FIELD
   );
   
   SELECT * FROM test_table_no_tag WHERE name = null;
   ```
   
   ### Table with TAG (used to work)
   ```sql
   CREATE TABLE test_table_with_tag(
     id STRING TAG,
     name STRING FIELD,
     value DOUBLE FIELD
   );
   
   SELECT * FROM test_table_with_tag WHERE name = null;
   ```
   
   ## Fix
   Handle casted NULL predicates across predicate visitors so the no-TAG
   path no longer fails.


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