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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to