Skip to content

[Browser] Bug: FalkorDB UI breaks, if it tries to render a node with a temporal data type (i.e. datetime) #1199

@punkch

Description

@punkch

New to FalkorDB, just started playing locally on my PC yesterday with the latest docker container.
I am not sure if the is the right place to report the issue am experiencing, but here it is:

There seems to be a bug with the browser UI if there is a node with datetime datatype in the result set of a query.

Steps to reproduce:

#!/bin/bash

echo "=== Creating test graph with temporal types ==="
redis-cli -p 6379 GRAPH.QUERY test_graph "CREATE (t:TEMPORAL_TEST {
  _ID: 'test_001',
  name: 'Temporal Test Node',
  created_datetime: localdatetime('2024-03-15T14:30:00'),
  birth_date: date('1990-05-20'),
  meeting_time: localtime('09:30:00'),
  work_duration: duration({hours: 8, minutes: 30})
}) RETURN t"

echo "=== Verifying temporal storage (backend) ==="
redis-cli -p 6379 GRAPH.QUERY test_graph "MATCH (t:TEMPORAL_TEST) RETURN t.created_datetime, t.birth_date, t.meeting_time, t.work_duration"

echo "=== Testing temporal comparisons ==="
redis-cli -p 6379 GRAPH.QUERY test_graph "MATCH (t:TEMPORAL_TEST)
RETURN
  t.created_datetime > localdatetime('2024-01-01T00:00:00') AS after_2024,
  t.birth_date < date('2000-01-01') AS before_2000"

echo "=== Now try viewing in UI: http://localhost:3000 ==="
echo "Query: MATCH (t:TEMPORAL_TEST) RETURN t"
echo "Expected: UI should crash or fail to render"
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions