โ03-20-2025 02:08 AM
Can someone explain to me how this is possible?
โ03-20-2025 02:11 PM
I replicated the query exactly but I couldn't produce the same results, and got back the expected result of the single row with 'aaa'. My initial thought is that it could be a bug in the runtime. Can you share the runtime of the cluster you are using?
โ03-20-2025 02:30 PM
โ03-20-2025 03:35 PM
@Sergecom This looks to be a possible bug, thank you for flagging. It looks like the EXISTS function works as intended with Serverless Compute and Serverless SQL Warehouses, but exhibits a different behavior when run on all-purpose compute. I've raised a ticket so that they can look into this.
โ03-20-2025 10:11 PM
Thanks for the update! Let me know if you need any more details from my sideโhappy to help.
Is there any way to follow this ticket @Shua42 ?
โ03-21-2025 12:55 AM
We were able to reproduce the problem, but it only occurs in Databricks SQL version 2025.10. With version 2024.05, the correct result is obtained.
โ03-21-2025 02:11 AM - edited โ03-21-2025 02:14 AM
Thanks for feedback @MarcoI've also tested with an older All-purpose Runtime 12.2 LTS and it works.
But its alarming that the latest runtime does not work as expected.
I will post SQL code so it will be easier for other to test. Both these queries give wrong results:
โ03-21-2025 03:02 PM
@Sergecom The engineering team worked on this and I believe it is now resolved for the newer runtimes. I confirmed it nows works as expected on 16.2. Can you confirm if it works on your end?
a month ago
Hi @Shua42
I can confirm that the EXISTS/NOT EXISTS query is working as expected now in the 15.4 LTS . Thank you for fixing it so quickly!
But the subquery issue still NOT fixed. Before I was getting two rows (that is incorrect). Now I'm getting an error:
a month ago
@Shua42 I've realized that I didnโt mention the subquery issue in my first post, so I guess this can be handled as a separate ticket.
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now