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

Add language support for wide node mode #66

Open
EnricoMi opened this issue Nov 16, 2020 · 2 comments
Open

Add language support for wide node mode #66

EnricoMi opened this issue Nov 16, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@EnricoMi
Copy link
Collaborator

The node source in wide mode has a column for each predicate. With language strings, each language of each predicate requires its own column, which needs to be known upfront. Configuration could provide a set of languages for those predicates, but this is not very handy. Zero service should tell us for each predicate, which languages exist for predicates with @lang directive. From this, we can derive the output DataFrame schema and configure the encoder.

@EnricoMi EnricoMi added the enhancement New feature or request label Nov 16, 2020
@EnricoMi
Copy link
Collaborator Author

Asked in the dgraph forum for a feature that would support knowing existing languages per predicate upfront: https://discuss.dgraph.io/t/list-of-existing-languages-per-predicate/11479

@EnricoMi
Copy link
Collaborator Author

EnricoMi commented Nov 5, 2021

Alternatively, the type of a column with @lang in wide mode could be a Map[String, T] where the key is the language tag mapping to the respective value of type T. This would not require any upfront information on existing languages, and the table does not explode in width and get sparse.

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

No branches or pull requests

1 participant