Skip to content

Commit

Permalink
Fix the segment interval for pulling metadata (#3174)
Browse files Browse the repository at this point in the history
The end of the interval would be on the truncated today date, which
means that you will exclude today. If your realtime ingestion job
runs shorter than a day, the metadata cannot be pulled from the
druid cluster.
  • Loading branch information
Fokko authored and mistercrunch committed Jul 26, 2017
1 parent cf1d0f3 commit aa95e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def latest_metadata(self):
lbound = datetime(1901, 1, 1).isoformat()[:10]
rbound = datetime(2050, 1, 1).isoformat()[:10]
if not self.version_higher(self.cluster.druid_version, '0.8.2'):
rbound = datetime.now().isoformat()[:10]
rbound = datetime.now().isoformat()
try:
segment_metadata = client.segment_metadata(
datasource=self.datasource_name,
Expand Down

0 comments on commit aa95e03

Please sign in to comment.