niyouzhu edited a comment on issue #17628:
URL: https://github.com/apache/superset/issues/17628#issuecomment-1047505324


   > Hello @niyouzhu which Superset version are you running?
   
   @geido the root cause should be the syntax IN(0) cannot run on dremio, the 
correct syntax is IN('0') or IN(true), just like this:
   
   SELECT DATE_TRUNC('day', "CreationTime") AS __timestamp,
          "AppUserId" AS "AppUserId",
          "WxUserId" AS "WxUserId",
          "UserName" AS "UserName",
          "Surname" AS "Surname",
          "Name" AS "Name",
          "IsExternal" AS "IsExternal",
          "IsDeleted" AS "IsDeleted",
          "PhoneNumber" AS "PhoneNumber",
          "Email" AS "Email",
          COUNT(*) AS "count"
   FROM "SSO"."Prod"."UsersWithWx"
   WHERE "IsDeleted" **IN (false)**
   GROUP BY "AppUserId",
            "WxUserId",
            "UserName",
            "Surname",
            "Name",
            "IsExternal",
            "IsDeleted",
            "PhoneNumber",
            "Email",
            DATE_TRUNC('day', "CreationTime")
   LIMIT 10000; 


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