Kevin Wang
10/16/2024, 11:46 PMa.b to col("a").struct.get("b") and parsing a.* to a list of expressions). any thoughts about that?Cory Grinstead
10/17/2024, 5:31 PMcol("a as b") when we'd likely want people to just use sql_expr("a as b")
why not just keep col the way it is since we also have sql_exprKevin Wang
10/17/2024, 5:38 PMcol("a as b") I would be okay with it. What are your thoughts? The main motivations for doing this is to
1. unify column name parsing for syntactic sugar such as struct getters and wildcards (right now we have something that is honestly kind of hard to understand on the non-sql side)
2. bring the sql expr integration to places other than .whereCory Grinstead
10/17/2024, 7:35 PMKevin Wang
10/17/2024, 8:03 PMCory Grinstead
10/17/2024, 8:12 PMselect NAME is the same is select name, but different from select "Name" , but i'm wondering how that'd all work in dataframes as col is case sensitive. so col("NAME") , col("Name") and col("name") refer to 3 distinct columns.
I suppose you could require the user to do col('"Name"') but that feels weird to me, and would likely introduce a ton of backwards incompatible changes.Cory Grinstead
10/17/2024, 8:14 PMselect NAME and select name are currently treated as "NAME" and "name" when they both should be treated as "name"Kevin Wang
10/17/2024, 8:19 PMKevin Wang
10/17/2024, 8:20 PMKevin Wang
10/17/2024, 8:23 PMjay
10/17/2024, 10:43 PMKevin Wang
10/17/2024, 10:44 PMKevin Wang
10/17/2024, 10:46 PM