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

Have a way to extract values from typed dicts when the underlying storage format is known #126

Open
matko opened this issue Mar 8, 2023 · 0 comments

Comments

@matko
Copy link
Member

matko commented Mar 8, 2023

We have two big storage format kinds, namely stringy and biginty. These are all saved in typed dicts in exactly the same format, and therefore can be extracted in exactly the same way as well.

Currently, the interface forces you to know about the exact type of a value to extract it. This is annoying for these kinds, because calling code might not care about the exact type but only about the fact that something is a stringy. This comes up in the graphql code for terminusdb, where we filter on and return stringy values in exactly the same way for each of them, but have to write a big match statement matching on all the stringy types to support them.

It'd be good if we had a generic way to extract the stringies and biginties as String or Bigint without having to know the exadt data type.

@github-actions github-actions bot added the triage issue to be triage label Mar 8, 2023
@matko matko removed the triage issue to be triage label Mar 13, 2023
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