mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
use the latest segment to extract metadata
This commit is contained in:
parent
20bd4ca0eb
commit
5c38fc731a
@ -847,7 +847,7 @@ class DruidDatasource(Model, AuditMixinNullable, Queryable):
|
||||
results = client.time_boundary(datasource=self.datasource_name)
|
||||
if not results:
|
||||
return
|
||||
max_time = results[0]['result']['minTime']
|
||||
max_time = results[0]['result']['maxTime']
|
||||
max_time = parse(max_time)
|
||||
intervals = (max_time - timedelta(seconds=1)).isoformat() + '/'
|
||||
intervals += (max_time + timedelta(seconds=1)).isoformat()
|
||||
|
Loading…
Reference in New Issue
Block a user