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

Rewrite more robust UUID plugin #265

Open
robfitzgerald opened this issue Dec 11, 2024 · 0 comments
Open

Rewrite more robust UUID plugin #265

robfitzgerald opened this issue Dec 11, 2024 · 0 comments

Comments

@robfitzgerald
Copy link
Collaborator

the current UUID output plugin expects queries that are tagged with {origin|destination}_vertex fields and looks up those values in a lookup table to append UUIDs. it fails if the vertex data is missing from the query.

let's refactor this so that instead, in configuration, we have

[[output_plugins]]
type = "UUID"
vertex_uuid_input_file = ""  # optional
edge_uuid_input_file = ""  # optional

during UuidOutputPlugin::process, we check for the following cases for each combination of origin/destination/edge/vertex:

match (query.get_origin_vertex(), self.vertex_uuids) {
  (Some(vertex_id), Some(vertex_uuids)): (Option<VertexId>, Option<Box<[String]>>) => { append_uuid() },
  _ => {} // do nothing, as opposed to failing here 
}
@robfitzgerald robfitzgerald mentioned this issue Dec 11, 2024
14 tasks
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