You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by vo...@apache.org on 2024/11/18 23:29:15 UTC

(druid) 40/42: fix todo

This is an automated email from the ASF dual-hosted git repository.

vogievetsky pushed a commit to branch segment_timeline2
in repository https://gitbox.apache.org/repos/asf/druid.git

commit 7513ec5c4f06655f1a75432556324f582fef5e03
Author: Vadim Ogievetsky <va...@ogievetsky.com>
AuthorDate: Fri Nov 15 22:43:52 2024 -0800

    fix todo
---
 web-console/src/components/segment-timeline/segment-timeline.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web-console/src/components/segment-timeline/segment-timeline.tsx b/web-console/src/components/segment-timeline/segment-timeline.tsx
index 0d8ee73caca..ab06abf52c3 100644
--- a/web-console/src/components/segment-timeline/segment-timeline.tsx
+++ b/web-console/src/components/segment-timeline/segment-timeline.tsx
@@ -158,8 +158,8 @@ export const SegmentTimeline = function SegmentTimeline(props: SegmentTimelinePr
 
         queriedStart = day.floor(new Date(startRes[0].start), TZ_UTC);
       } else {
-        // ToDo: fill me
-        throw new Error('fill me');
+        // Don't bother querying if there is no SQL
+        return getDateRange(DEFAULT_SHOWN_DURATION);
       }
 
       return [


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org