public static Expression resolve(final Expression expression, final SqlType sqlType) {
    if (sqlType instanceof SqlDecimal) {
      return resolveToDecimal(expression, (SqlDecimal)sqlType);
    }

    return expression;
  }
@Test
  public void shouldNotResolveNonDecimalTarget() {
    // When
    final Expression expression =
        ImplicitlyCastResolver.resolve(new IntegerLiteral(5), SqlTypes.STRING);

    // Then
    assertThat(expression, instanceOf(IntegerLiteral.class));
    assertThat(((IntegerLiteral)expression).getValue(), is(5));
  }