Skip to content

No function matches 'bitstring(BIT, INTEGER_LITERAL)' #14216

Closed
@liamdiprose

Description

What happens?

The bitstring function doesn't work. The given example results in this error:

Binder Error: No function matches the given name and argument types 'bitstring(BIT, INTEGER_LITERAL)'. You might need to add explicit type casts.
	Candidate functions:
	bitstring(VARCHAR, INTEGER) -> BIT

LINE 1: SELECT bitstring('1010'::BITSTRING, 7);

To Reproduce

SELECT bitstring('1010'::BITSTRING, 7);

OS:

Linux

DuckDB Version:

1.0.0

DuckDB Client:

CLI

Hardware:

No response

Full Name:

Liam Diprose

Affiliation:

Liam Diprose

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have not tested with any build

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions