on-internet
← Community

TDengine`last_row()` returns empty columns on child table while`SELECT * ... ORDER BY ts DESC LIMIT 1` works correctly

Stack Overflow ·

I'm seeing inconsistent results between two seemingly equivalent queries on a TDengine 3.3.6.3 child table, running in a Docker container (single node, single replica). Environment TDengine: 3.3.6.3 (community edition) Deployment: Docker container, single node, single replica Table type: child table with ~500 columns The Problem When I run: SELECT last_row(*) FROM db.m_child_table; All data columns come back empty — only the timestamp is populated. But when I run: SELECT * FROM db.m_child_table ORDER BY ts DESC LIMIT 1; It returns a row with data, but the values don't match what last_row() sho

Comments

Sign in or sign up to comment and upvote.

No comments yet.