public static boolean canImplicitlyCast(final SqlDecimal s1, final SqlDecimal s2) {
    return s1.getScale() <= s2.getScale()
        && (s1.getPrecision() - s1.getScale()) <= (s2.getPrecision() - s2.getScale());
  }
@Test
  public void shouldAllowImplicitlyCastOnEqualSchema() {
    // Given:
    final SqlDecimal s1 = SqlTypes.decimal(5, 2);
    final SqlDecimal s2 = SqlTypes.decimal(5, 2);

    // When:
    final boolean compatible = DecimalUtil.canImplicitlyCast(s1, s2);

    // Then:
    assertThat(compatible, is(true));
  }