You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
Version
xxx
What's Wrong?
sql1 result:
51793322
51793322
after adding having count(1) > 1 , the result of sql2 are empty.
sql1
SELECT photo_id
FROM
(SELECT photo_id AS photo_id,
app_id AS ksmp_app_id
FROM xxx
WHERE dt = '2022-10-12'
AND status <> 2
and photo_id = '51793322'
AND (photo_id NOT IN (0,
1,
2,
3)
OR (app_id <> 'xxx'
AND production_source = 8))
GROUP BY photo_id,
app_id) AS a
GROUP BY photo_id
ORDER BY photo_id
LIMIT 100
;
sql2
SELECT photo_id
FROM
(SELECT photo_id AS photo_id,
app_id AS ksmp_app_id
FROM xxx
WHERE dt = '2022-10-12'
AND status <> 2
and photo_id = '51793322'
AND (photo_id NOT IN (0,
1,
2,
3)
OR (app_id <> 'xxx'
AND production_source = 8))
GROUP BY photo_id,
app_id) AS a
GROUP BY photo_id
having count(1) > 1
ORDER BY photo_id
LIMIT 100
;
How to Reproduce?
No response
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Search before asking
Version
xxx
What's Wrong?
sql1 result:
after adding
having count(1) > 1
, the result of sql2 are empty.sql1
sql2
How to Reproduce?
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: