-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEFAULT with function call only works with ALTER PROPERTY #1609
Comments
Hmm, I can reproduce this. It seems the timestamp in the first case is the creation date of the property, not the vertex. Could you try:
this seems to work for me. |
2 tasks
OK, sure, that works. Thanks. |
I guess the docs are not clear on this point. I found this example that is misleading: ArcadeDB> CREATE PROPERTY Employee.hiredAt DATETIME (readonly, default sysdate('YYYY-MM-DD HH:MM:SS')) |
Sorry false alarm, but there is something related not right I cannot yet pin down. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ArcadeDB Version:
v24.4.1 (build c714a4f5c827d742d6edd0f7788fe049bc63607b/1713579699346/main)
OS and JDK Version:
Running on Linux 5.15.146.1-microsoft-standard-WSL2 - OpenJDK 64-Bit Server VM 11.0.22 (Temurin-11.0.22+7)
Expected behavior
Setting
DEFAULT sysdate()
during create should be identical to addingDEFAULT sysdate()
during ALTER PROPERTY.Actual behavior
When I say:
The three vertices all have the same createdAt field. Whereas if I say:
Then
...creates vertices with three unique timestamps.
I'm using the Docker Hub image version 24.4.1.
Originally posted by @TimMensch in #905 (comment)
The text was updated successfully, but these errors were encountered: