Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 675 Bytes

set-type.md

File metadata and controls

15 lines (13 loc) · 675 Bytes

Set Type

Convert data type of a column

Syntax

set-type <column> <type> [<scale> <rounding-mode> prop:{precision=<precision>}]

The <column> is converted to the type in <type>. Acceptable types are: int, short, long, float, double, decimal, string, bytes, boolean. When decimal type is specified, two optional arguments can be given:

  • <scale>: set the scale of the decimal value.
  • <rounding-mode>: Java rounding-mode to use when decimal value's scale is not equal to the set scale. By default, HALF_EVEN is assumed.
  • <precision>: set the precision of the decimal value.