not matching sample ids

This commit is contained in:
Pritimay Sarkar
2024-03-06 18:12:51 +05:30
parent abb1340991
commit 482f0486c0

View File

@@ -0,0 +1,11 @@
WITH AllIds AS (
SELECT DISTINCT _id
FROM UNNEST(['"719"','"1084"','"1435"','"1911"','"2132"','"2666"','"3340"','"3932"','"5350"','"5368"','"5671"','"6492"','"6515"','"6659"','"6742"','"6803"','"6853"','"7068"','"7142"','"7202"','"7250"','"7343"','"7428"','"7459"','"7497"','"7498"','"7692"','"7769"','"7773"','"7779"','"7780"','"7792"','"7797"','"7800"','"7803"','"7812"','"7860"','"7867"','"7871"','"7881"','"7889"','"7897"','"7902"','"7935"','"7941"','"7946"','"7992"','"8152"','"8194"','"8311"','"8335"','"8411"','"8465"','"8507"','"8513"','"8524"','"8541"','"8544"','"8546"','"8550"','"8568"','"8576"','"8581"','"8582"','"8586"','"8651"','"8681"','"8688"','"8708"','"8710"','"8721"','"8723"','"8731"','"8739"','"8740"','"8743"','"8745"','"8746"','"8748"','"8750"','"8751"','"8752"','"8754"','"8769"','"8774"','"8775"','"8882"','"8944"','"8962"','"9000"','"9005"','"9041"','"9158"','"9176"','"9192"','"9247"','"9276"','"9282"','"9329"','"9351"','"9388"','"9548"','"9619"','"9637"','"9670"','"9675"','"9677"','"9840"','"9853"','"9906"','"7800R"','"7941R"','"8194R"','"S1"','"S1R"','"S2"','"S3"','"S3"','"S4"','"S5"','"S5R"','"S6"','"S7"']) AS _id
)
SELECT _id
FROM AllIds
WHERE _id NOT IN (
SELECT DISTINCT JSON_EXTRACT(data, '$._id') AS _id
FROM `hpos-uat.firestore_export.testData_raw_latest`
);