You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we only one time index column in each table, it is possible to use an alias for this column without requiring its actual name in sql. For example in a table of:
CREATETABLEmonitor (
host STRING,
ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP() TIME INDEX,
cpu FLOAT64 DEFAULT 0,
memory FLOAT64,
PRIMARY KEY(host));
Instead of using ts, we can use an alias, say __ts__, in sql query:
SELECT*FROM monitor ORDER BY __ts__ DESCLIMIT100;
Alias naming candidates
$timestamp
__timestamp
__timestamp__
@timestamp
Implementation challenges
No response
The text was updated successfully, but these errors were encountered:
What type of enhancement is this?
User experience
What does the enhancement do?
Since we only one time index column in each table, it is possible to use an alias for this column without requiring its actual name in sql. For example in a table of:
Instead of using
ts
, we can use an alias, say__ts__
, in sql query:Alias naming candidates
$timestamp
__timestamp
__timestamp__
@timestamp
Implementation challenges
No response
The text was updated successfully, but these errors were encountered: