Skip to content

Commit

Permalink
changed get for granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
chenselena committed Sep 20, 2024
1 parent 779a46b commit b0fa196
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private static RetentionStatsSchema buildRetentionStats(Map<String, Object> rete
retentionPolicy.containsKey("count")
? Integer.valueOf((String) retentionPolicy.get("count"))
: 0)
.granularity((String) retentionPolicy.get("granularity"))
.granularity((String) retentionPolicy.getOrDefault("granularity", null))
.columnPattern((String) retentionPolicy.getOrDefault("pattern", null))
.columnName((String) retentionPolicy.getOrDefault("columnName", null))
.build();
Expand Down

0 comments on commit b0fa196

Please sign in to comment.