-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add "hidden" property attribute #1847
Conversation
@gramian I added the missing part, essentially I updated the sql grammar and added some tests. So, how it works? If a property is configure to be hidden, when using the SELECT * FROM TypeWithHiddenPropery than the hidden property isn't present in the result set. But, when not using the SELECT FROM TypeWithHiddenPropery than the hidden property IS present in the result set. After a fast call with @lvca, we think this is the right way to implement the feature. When a the query is written without a projection, the WDYT? |
Hmm, OK. I always thought of |
They are working differently in the parser. The If you think the feature is valuable in this incarnation, we can merge it :) |
It definitely is. I am thinking about documentation for users, so when to use which and why. So given a large document, meaning many properties, The point being |
exactly: you get to the point. |
Exactly. |
What does this PR do?
This new boolean property attribute called
hidden
excludes properties from a projection containing a*
(star).Motivation
ZetaSQL
Related issues
#1439
Additional Notes
This is the interesting change set: https://github.com/ArcadeData/arcadedb/pull/1503/files#diff-1ebfff8995bc54eab127a05a7f09d799b215972c6aa872635f37d86e824fb0b3
*
(isAll
) gets parsed property by property not by copy any more.SELECT * FROM x
works, butSELECT FROM x
does not.Checklist
mvn clean package
command