"model = {",
" @directio.hive.decimal(precision = 10, scale = 2)",
" simple : DECIMAL;",
"};"
}).findModelDeclaration("model");
PropertyDeclaration property = model.findPropertyDeclaration("simple");
HiveFieldTrait trait = property.getTrait(HiveFieldTrait.class);
assertThat(trait, is(notNullValue()));
assertThat(trait.getTypeKind(), is(HiveFieldTrait.TypeKind.DECIMAL));
assertThat(trait.getDecimalPrecision(), is(10));
assertThat(trait.getDecimalScale(), is(2));