Creates a Column of literal value.
The literal value (string, number, boolean, bigint, Date, null, or Column)
A Column representing the literal value
The literal value can be of various types including primitives, dates, and Column instances. If a Column is passed, it will be returned as-is.
df.select(lit(5), lit("hello"), lit(true), lit(new Date())) Copy
df.select(lit(5), lit("hello"), lit(true), lit(new Date()))
Creates a Column of literal value.