Closed r33s3n6 closed 1 month ago
Hello, I am Blathers. I am here to help you get the issue triaged.
Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here.
I was unable to automatically find someone to ping.
If we have not gotten back to your issue within a few business days, you can try the following:
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
I apologize for accidentally mixing up the attachments for the SQL output results of these two issues(#122960 and #122961 ). I have now edited and corrected them. I'm very sorry for the confusion.
Closing as duplicate of #122960.
Describe the problem
UNION
withORDER BY
andLIMIT
produced wrong result in multi-node version but not in single-node versionTo Reproduce First execute
init.sql
to create the table. Then executingerror.sql
yields unexpected results. Note that reproducing these results might not be entirely stable. Typically, it can be completed within three attempts. You can try executing multiple times or execute it again after rebuilding the table. init.sql.txt error.sql.txtExpected behavior The multi-node version of CockroachDB produced incorrect results. In the correct results, the quantity of NULLs should be 1, but it outputted many. output_re_main.log output_re_single.log
Environment:
Linux a002 6.5.0-18-generic #18~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 11:40:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
docker compose file:
about us
We are the BASS team from the School of Cyber Science and Technology at Beihang University. Our main focus is on system software security, operating systems, and program analysis research, as well as the development of automated program testing frameworks for detecting software defects. Using our self-developed database vulnerability testing tool, we have identified the above-mentioned possible vulnerabilities that may lead to database logic error.
Jira issue: CRDB-38141