Skip to content

Fuzz test failure: lpad/rpad fail at runtime with "unsupported arguments" #2624

@andygrove

Description

@andygrove

Describe the bug

Query worked in Spark but failed in Comet.

SQL

SELECT c12, c16, c26, lpad(c12, c16, c26) AS x FROM test1 ORDER BY c12, c16, c26;

[ERROR] Query failed in Comet: Job aborted due to stage failure: Task 8 in stage 3548.0 failed 4 times, most recent failure: Lost task 8.3 in stage 3548.0 (TID 26460) (192.168.86.23 executor 10): org.apache.comet.CometNativeException: Unsupported arguments [Array(StringArray
[
"儂ꢻ鱠蒡㥖\u{cdf}샪곛",
"25",
"0.3939222852601082",
"剫蕚璆㕰\u{ab1a}䅅걣쪳",
"ꖹ洛ᘣ맳쀚ঔ澟埲",
"툨鱬掛盕Ӡ跁湦穆",
"ဪ鶪쑓ᑙഥ悼ꬷ\u{243b}",
"ᑸ䳃⿿髭ἀ簼襆❨",
"ẑ\u{1779}闀鷁䶟ꗎ쿍ದ",
null,
"xZMzSucO",
"鉕죹〦털髥㛃렙꧟",
"56",
"VAuzFSRE",
"䊟㝉䋀믆༔娹䊎鲣",
"27",
]), Array(PrimitiveArray
[
-19282,
-31929,
-17028,
-30801,
27411,
14657,
23256,
-31023,
13758,
19326,
-514,
-19207,
-25087,
0,
-9466,
925,
]), Array(StringArray
[
null,
"qQAIDBgZ",
"ၛ쀼ᇮ烒㞅⬊፬峇",
null,
"탧뭳꾔鎶郎☮活鋻",
null,
"숊史쐲烐鵗鉌ℨ鐅",
"\u{4}嗃쩆鶌頜侥䦝泼",
null,
"ಈ夻삊苌窇죧䳷⣅",
"0.27402197585631183",
"ᘷ쾰溊ꕈ롊潕⬾⚞",
"㊝鰎紼獻贰칻왇\u{82c}",
"놭즓ॎ샶⺀˽翢薪",
"ᎋ錮粵醒尬俪㦬™",
"-34",
])] for function rpad/lpad/read_side_padding.
This issue was likely caused by a bug in DataFusion's code. Please help us to resolve this by filing a bug report in our issue tracker: https://github.com/apache/datafusion/issues

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions