Closed souravagasti closed 2 months ago
Lit does work you just need to make sure to import from SQLFrame path instead of PySpark.
from sqlframe.standalone import StandaloneSession
from sqlframe.standalone.functions import lit
.....
When using SQLFrame you no longer import from pyspark but instead import from sqlframe. I will update docs this evening to make this clearer.
I see a strange behaviour,
The code works fine with line 21, but does not work with line 20. (It is the same step in different order).
I think if you replace df.Name + df.Age
to col("name") + col("age")
then it will work. Will look into fix tonight.
@1harshit1 This should be fixed in 1.1.3
. If you have further issues please open a new issue and I would be happy to take a look. Thanks for reporting this!
Getting an error with the following code: