Skip to content

INTERNAL Error: Failed to bind column reference "xx" [21.0] (bindings: [0.0 0.1 1.0]) #11042

@exaroj

Description

@exaroj

What happens?

INTERNAL Error: Failed to bind column reference "parentExists" [21.0] (bindings: [0.0 0.1 1.0])

To Reproduce

CREATE OR REPLACE TABLE BaseData AS (
    SELECT
      '10' AS my_key,
      '20' AS parent_key,
      '30' AS payload
)
;

WITH
Example AS (
    SELECT
        c.my_key,
        (c.parent_key IN (SELECT my_key FROM BaseData)) AS parentExists,
        p.my_key IS NOT NULL AS parentExists2,
    FROM BaseData AS c
    LEFT JOIN BaseData AS p ON c.parent_key = p.my_key
)
SELECT *
FROM Example
WHERE parentExists -- fails
-- WHERE parentExists2 -- works
;

OS:

macOS 14.3.1

DuckDB Version:

0.10.0

DuckDB Client:

Python

Full Name:

Rob Jackson

Affiliation:

Exaforce

Have you tried this on the latest nightly build?

I have tested with a nightly build

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • Yes, I have

Metadata

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