mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Fix the segment interval for pulling metadata (#3174)
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.
This commit is contained in:
parent
cf1d0f38ad
commit
aa95e03eb9
@ -492,7 +492,7 @@ class DruidDatasource(Model, BaseDatasource):
|
|||||||
lbound = datetime(1901, 1, 1).isoformat()[:10]
|
lbound = datetime(1901, 1, 1).isoformat()[:10]
|
||||||
rbound = datetime(2050, 1, 1).isoformat()[:10]
|
rbound = datetime(2050, 1, 1).isoformat()[:10]
|
||||||
if not self.version_higher(self.cluster.druid_version, '0.8.2'):
|
if not self.version_higher(self.cluster.druid_version, '0.8.2'):
|
||||||
rbound = datetime.now().isoformat()[:10]
|
rbound = datetime.now().isoformat()
|
||||||
try:
|
try:
|
||||||
segment_metadata = client.segment_metadata(
|
segment_metadata = client.segment_metadata(
|
||||||
datasource=self.datasource_name,
|
datasource=self.datasource_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user