From 8151d14786a54313d65da18eff8f5df59e55e641 Mon Sep 17 00:00:00 2001 From: Vikram Ramakrishnan Date: Wed, 12 Nov 2014 21:36:46 +0530 Subject: [PATCH] Include origin when creating the cacheKey for period Grans --- .../src/main/java/io/druid/granularity/PeriodGranularity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/src/main/java/io/druid/granularity/PeriodGranularity.java b/processing/src/main/java/io/druid/granularity/PeriodGranularity.java index 2aef4ff4044..c3e4feff90d 100644 --- a/processing/src/main/java/io/druid/granularity/PeriodGranularity.java +++ b/processing/src/main/java/io/druid/granularity/PeriodGranularity.java @@ -326,7 +326,7 @@ public class PeriodGranularity extends BaseQueryGranularity @Override public byte[] cacheKey() { - return (period.toString() + ":" + chronology.getZone().toString()).getBytes(Charsets.UTF_8); + return (period.toString() + ":" + chronology.getZone().toString() + ":" + origin).getBytes(Charsets.UTF_8); } @Override