Skip to main content
formatting done
Source Link
Ram Ghadiyaram
  • 29.4k
  • 16
  • 102
  • 133

You can cast the data with the specific decimal size like below,

lead($"amount", 1,0).over(windowspec).cast(DataTypes.createDecimalType(32,2))

lead($"amount", 1,0).over(windowspec).cast(DataTypes.createDecimalType(32,2)) 

You can cast the data with the specific decimal size like below,

lead($"amount", 1,0).over(windowspec).cast(DataTypes.createDecimalType(32,2))

You can cast the data with the specific decimal size like below,

lead($"amount", 1,0).over(windowspec).cast(DataTypes.createDecimalType(32,2)) 
Source Link
magic
  • 72
  • 6

You can cast the data with the specific decimal size like below,

lead($"amount", 1,0).over(windowspec).cast(DataTypes.createDecimalType(32,2))