• Creates a Column of literal value.

    Parameters

    • v: any

      The literal value (string, number, boolean, bigint, Date, null, or Column)

    Returns 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()))