What is the purpose of the VALUE @expression
clause in a DEFINE FIELD <field> ON <table>
statement?
I expect it to return the result of the @expression
if the <field>
is queried on <table>
. However, it always returns null, regardless of the @expression
configured.
Here is an example:
DEFINE TABLE test SCHEMAFUL;
DEFINE FIELD time ON test VALUE time::now();
CREATE test:some;
SELECT time FROM test:some; # This is where I expect to get the current time
The result however dislays a null value.
In the following query:
SELECT * FROM test;
the time
field does not even show up.