john-bodley commented on a change in pull request #8714: [fix] Druid IS NULL/IS 
NOT NULL filters
URL: 
https://github.com/apache/incubator-superset/pull/8714#discussion_r352797542
 
 

 ##########
 File path: superset/connectors/druid/models.py
 ##########
 @@ -1559,9 +1559,9 @@ def get_filters(cls, raw_filters, num_cols, 
columns_dict) -> "Filter":
                     alphaNumeric=is_numeric_col,
                 )
             elif op == "IS NULL":
-                cond = Dimension(col) is None
+                cond = Filter(dimension=col, value="")
             elif op == "IS NOT NULL":
-                cond = Dimension(col) is not None
+                cond = ~Filter(dimension=col, value="")
 
 Review comment:
   @betodealmeida I'm unsure. I was merely following the pattern for 
[`!=`](https://github.com/apache/incubator-superset/blob/master/superset/connectors/druid/models.py#L1481).

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to