Parses Tableau "relationships" (introduced in 2020.2) between logical tables, including the join predicate fields and operator.
Value
A tibble with columns:
- relationship_type
Always "Relationship"
- left_table
Left table name
- right_table
Right table name
- left_field
Field name on left side
- operator
Join operator (e.g., "=")
- right_field
Field name on right side
- left_is_calc
Logical, whether left field is a calculation
- right_is_calc
Logical, whether right field is a calculation
Examples
if (FALSE) { # \dontrun{
xml <- xml2::read_xml("inst/extdata/sample.twb")
extract_relationships(xml)
} # }