As I create a new column with F.lit(1), while calling printSchema() I get
column_name: integer (nullable = false)
as lit function docs is quite scarce, do you think there is any simple mapping that can be done to turn it into nullable = true?