Cory Grinstead
09/23/2024, 7:06 PMwhere ex: df.where('a == 1')
what about adding that for expr.cast as well.
so instead of
daft.col('list').cast(daft.DataType.fixed_size_list(daft.DataType.int32(), 3))
you could just type:
daft.col('list').cast('int[3]')jay
09/23/2024, 7:07 PMjay
09/23/2024, 7:07 PMdaft.DataType.string()jay
09/23/2024, 7:09 PMstr : DataType? This should also just be consistent with our SQL representation of types rightjay
09/23/2024, 7:10 PM@daft.udf(return_dtype="struct[foo: string, bar: int64]")Cory Grinstead
09/23/2024, 7:11 PMI guess the tricky thing might be how we construct that mapping ofI was thinking we'd just delegate directly to the sql engine like we do with:str? This should also just be consistent with our SQL representation of types right (edited)DataType
dataframe.wherejay
09/23/2024, 7:12 PMDataType.from_sql("…")? Could be usefuljay
09/27/2024, 5:22 PMdaft.DataType… 😭
Didn’t work thoughCory Grinstead
09/27/2024, 5:33 PMjay
09/27/2024, 9:04 PMEverett Kleven
09/28/2024, 8:48 PMfrom daft import col, DataFrame, DataType as dajay
09/29/2024, 1:37 AMDataType quite verbose yeahEverett Kleven
09/29/2024, 2:31 AM