Bug #61559
closedRGW crash upon parsing a TPCDS query (Trino push-down)
0%
Description
upon processing TPCDS benchmark
the RGW had crashed on segfault.
the s3select-parser(boost-spirit) accesses "bad" memory.
the query is
"SELECT s._1, s._7 FROM S3Object s WHERE (case s._7 when ' ' then null else CAST end = 2000);"
(*) seems like the parser does not accept correctly capital characters in CAST statement.
Updated by Gal Salomon 11 months ago
Gal Salomon wrote:
upon processing TPCDS benchmark
the RGW had crashed on segfault.
the s3select-parser(boost-spirit) accesses "bad" memory.the query is
"SELECT s._1, s._7 FROM S3Object s WHERE (case s._7 when '' then null else CAST end = 2000);"(*) seems like the parser does not accept correctly capital characters in CAST statement.
the crash is caused by "skipping" data-type upon the parsing stage (for CAST operator)
the engine failed to identify the data-type(wrong comparison), thus did not push that data-type into parser-stack.
Updated by Gal Salomon 10 months ago
- Status changed from New to Resolved
- Pull request ID set to 52186