Bug #61559
closed
RGW crash upon parsing a TPCDS query (Trino push-down)
Added by Gal Salomon 11 months ago.
Updated 10 months ago.
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.
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.
- Status changed from New to Resolved
- Pull request ID set to 52186
Also available in: Atom
PDF