Skip to content
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

[WIP] Add "hidden" property attribute #1503

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Conversation

gramian
Copy link
Collaborator

@gramian gramian commented Mar 9, 2024

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

Checklist

  • I have run the build using mvn clean package command
  • My unit tests cover both failure and success scenarios

@@ -87,6 +87,8 @@ default Property createProperty(String propName, JSONObject prop) {
p.setMandatory(prop.getBoolean("mandatory"));
if (prop.has("notNull"))
p.setNotNull(prop.getBoolean("notNull"));
if (prop.has("hidden"))
p.setNotNull(prop.getBoolean("hidden"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be .setHidden(), right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 right, a classic copy/paste error. Fixed but still not working though...
Thanks for checking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants