How to set the date as NULL or INFINITY in apache tinkerpop gremlin?
I have a field - start_date
and end_date
. end_date
is optional and it's unknown. In a relational database, we can set either NULL
or INFINITY
.
Is there any recommended value?
There is currently no way to store INFINITY or NULL. You have a few options.
-(2**63)
or max-int (2**63)-1
as the definition for "no valid date set".g.addV('event').property('endDate',datetime('9999-12-31'))