Skip to content

nulls in joined column when autopolars = True #1042

Open
@rwickramatunga

Description

@rwickramatunga

What happens?

id a
1 1
2 2
3 3

table_a

id b
1 1
2 2

table_b

SELECT 
*
FROM table_1
LEFT JOIN table_2
ON table_1.id = table_2.id

Returns

id a b
1 1 1
2 2 2
null 3 null

When it should return

id a b
1 1 1
2 2 2
3 3 null

To Reproduce

import duckdb
%load_ext sql
%sql duckdb:///:memory:
%config SqlMagic.autopolars = True
%%sql
CREATE TABLE table_a (
    id INTEGER,
    a INTEGER
);

INSERT INTO table_a (id, a) VALUES
(1, 1),
(2, 2),
(3, 3);

CREATE TABLE table_b (
    id INTEGER,
    b INTEGER
);

INSERT INTO table_b (id, b) VALUES
(1, 1),
(2, 2);
%%sql
SELECT 
    *
FROM 
    table_a
LEFT JOIN 
    table_b
ON 
    table_a.id = table_b.id;

OS:

Debian GNU/Linux 11 (bullseye)

JupySQL Version:

0.10.16

Full Name:

Rajith Wickramatunga

Affiliation:

camh

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions