Skip to content

Comments

double esc#167

Closed
drizk1 wants to merge 1 commit intomainfrom
join_fix
Closed

double esc#167
drizk1 wants to merge 1 commit intomainfrom
join_fix

Conversation

@drizk1
Copy link
Member

@drizk1 drizk1 commented Apr 3, 2025

not entirely sure why this works, but it fixes the issue #166

julia> using Tidier

julia> db = connect(duckdb());

julia> df1 = DataFrame(a = ["a", "b"], b = 1:2); df1db = dt(db, df1, "df1");

julia> df2 = DataFrame(a = ["a", "c"], c = 3:4); df2db = dt(db, df2, "df2");

julia> @chain df1db begin 
           @left_join(df2db, a = a)
           @collect
       end
2×3 DataFrame
 Row │ a       b      c       
     │ String  Int64  Int64?  
─────┼────────────────────────
   1 │ a           1        3
   2 │ b           2  missing 

julia> @chain df1db begin 
           @left_join(dt(db, "df2"), a = a)
           @collect
       end
2×3 DataFrame
 Row │ a       b      c       
     │ String  Int64  Int64?  
─────┼────────────────────────
   1 │ a           1        3
   2 │ b           2  missing 

@kdpsingh
Copy link
Member

kdpsingh commented Apr 3, 2025

This should be fixed now in the latest release so will close. It was a bug with the way that @chain was being exported.

@kdpsingh kdpsingh closed this Apr 3, 2025
@drizk1 drizk1 deleted the join_fix branch April 3, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants