mrhhsg opened a new pull request, #23971:
URL: https://github.com/apache/doris/pull/23971

   ## Proposed changes
   
   Schema:
   ```sql
   create table t1
           (k1 bigint, k2 bigint)
           ENGINE=OLAP
   DUPLICATE KEY(k1, k2)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(k2) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "is_being_synced" = "false",
   "storage_format" = "V2",
   "light_schema_change" = "true",
   "disable_auto_compaction" = "false",
   "enable_single_replica_compaction" = "false"
   );
   create table t3
           (k1 bigint, k2 bigint)
           ENGINE=OLAP
   DUPLICATE KEY(k1, k2)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(k2) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "is_being_synced" = "false",
   "storage_format" = "V2",
   "light_schema_change" = "true",
   "disable_auto_compaction" = "false",
   "enable_single_replica_compaction" = "false"
   );
   ```
   Data:
   ```sql
   insert into t1 values (1,null),(null,1),(1,2), (null,2),(1,3), (2,4), (2,5), 
(3,3), (3,4), (20,2), (22,3), (24,4),(null,null);
   insert into t3 values (1,null),(null,1),(1,4), (1,2), (null,3), (2,4), 
(3,7), (3,9),(null,null),(5,1);
   ```
   Query:
   ```sql
    select t1.* from t1 where not exists ( select k1 from t3 where t1.k2 < 
t3.k2 );
   ```
   
   Result:
   ```
   Empty set
   ```
   Expect result:
   ```
   +------+------+
   | k1   | k2   |
   +------+------+
   | NULL | NULL |
   |    1 | NULL |
   +------+------+
   ```
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to