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

Include filters for normalization #1

Open
ppKrauss opened this issue Nov 29, 2017 · 1 comment
Open

Include filters for normalization #1

ppKrauss opened this issue Nov 29, 2017 · 1 comment

Comments

@ppKrauss
Copy link
Contributor

Some JSONb can be easylly transformated into valid bags:

  • a "bag" with nulls or zeros: must delete them.
  • an array of bags: must expand into sql-array
  • ... string filters for canonic element expression, but is application-specific.

So simple functions bag.std(JSONb) and bag.std_array(JSONb) that converts impercfect bags.

@ppKrauss
Copy link
Contributor Author

ppKrauss commented Jan 31, 2018

See the new valid(jbag) as reference to "perfect bags".

Better function name: jsonb_filtersanitize_to_jbag(jsonb,options) returns jbag.

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

No branches or pull requests

1 participant