Skip to content

Commit

Permalink
Fix Instant Filters To Use New RangeFilter Semantics and MatchFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Jun 26, 2024
1 parent 77b6c1c commit fd7b8fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private WhereFilter generateNumericConditionFilter(CompareCondition.CompareOpera
valueString = Long.toString(value.getLongValue());
break;
case NANO_TIME_VALUE:
valueString = Long.toString(value.getNanoTimeValue());
valueString = String.format("'%d'", value.getNanoTimeValue());
break;
case VALUE_NOT_SET:
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private void onLiteral(Literal literal) {
sb.append(literal.getLongValue());
break;
case NANO_TIME_VALUE:
sb.append("DateTimeUtils.epochNanosToInstant(").append(literal.getNanoTimeValue()).append(")");
sb.append("'").append(literal.getNanoTimeValue()).append("'");
break;
case VALUE_NOT_SET:
default:
Expand Down

0 comments on commit fd7b8fc

Please sign in to comment.