Skip to content

to_timestamp() fails when passed mix of scalar and array args #20223

@neilconway

Description

@neilconway

Describe the bug

When to_timestamp() was invoked with a scalar Float64 and an array of strings, the implementation neglects to broadcast the scalar to the array properly when producing the return value.

To Reproduce

CREATE TABLE t61(v2 STRING);
INSERT INTO t61(v2) VALUES ('flX'), ('3');

SELECT TO_TIMESTAMP(123.5, tt0.v2) FROM t61 AS tt0;

Yields

Internal error: UDF to_timestamp returned a different number of rows than expected. Expected: 2, Got: 1

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions