private static String sanitizeDate(int days, int today) {
    String isPast = today > days ? "ago" : "from-now";
    int diff = Math.abs(today - days);
    if (diff == 0) {
      return "(date-today)";
    } else if (diff < 90) {
      return "(date-" + diff + "-days-" + isPast + ")";
    }

    return "(date)";
  }
@Test
  public void testSanitizeDate() {
    assertEquals(
        Expressions.equal("test", "(date)"),
        ExpressionUtil.sanitize(Expressions.equal("test", "2022-04-29")));

    assertEquals(
        Expressions.equal("date", "(date)"),
        ExpressionUtil.sanitize(STRUCT, Expressions.equal("date", "2022-04-29"), true));

    assertThat(ExpressionUtil.toSanitizedString(Expressions.equal("test", "2022-04-29")))
        .as("Sanitized string should be identical except for descriptive literal")
        .isEqualTo("test = (date)");

    assertThat(
            ExpressionUtil.toSanitizedString(STRUCT, Expressions.equal("date", "2022-04-29"), true))
        .as("Sanitized string should be identical except for descriptive literal")
        .isEqualTo("date = (date)");
  }