File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -243,24 +243,24 @@ def join(
243
243
assert right_on is not None # noqa: S101
244
244
245
245
conditions = [
246
- f" lhs.{ left } = rhs.{ right } " for left , right in zip (left_on , right_on )
246
+ f' lhs." { left } " = rhs." { right } "' for left , right in zip (left_on , right_on )
247
247
]
248
248
condition = " and " .join (conditions )
249
249
rel = self ._native_frame .set_alias ("lhs" ).join (
250
250
other ._native_frame .set_alias ("rhs" ), condition = condition , how = how
251
251
)
252
252
253
253
if how in ("inner" , "left" , "cross" ):
254
- select = [f" lhs.{ x } " for x in self ._native_frame .columns ]
254
+ select = [f' lhs." { x } "' for x in self ._native_frame .columns ]
255
255
for col in other ._native_frame .columns :
256
256
if col in self ._native_frame .columns and (
257
257
right_on is None or col not in right_on
258
258
):
259
- select .append (f" rhs.{ col } as { col } { suffix } " )
259
+ select .append (f' rhs." { col } " as " { col } { suffix } "' )
260
260
elif right_on is None or col not in right_on :
261
261
select .append (col )
262
262
else : # semi
263
- select = [f "lhs.{ x } " for x in self . _native_frame . columns ]
263
+ select = ["lhs.*" ]
264
264
265
265
res = rel .select (", " .join (select )).set_alias (original_alias )
266
266
return self ._from_native_frame (res )
You can’t perform that action at this time.
0 commit comments