Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 589 Bytes

set-type.md

File metadata and controls

14 lines (12 loc) · 589 Bytes

Set Type

Convert data type of a column

Syntax

set-type <column> <type> [<scale> <rounding-mode>]

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.