Neal Richardson created ARROW-14417:
---------------------------------------
Summary: [R] Joins ignore projection on left dataset
Key: ARROW-14417
URL: https://issues.apache.org/jira/browse/ARROW-14417
Project: Apache Arrow
Issue Type: Bug
Components: R
Reporter: Neal Richardson
Assignee: Neal Richardson
Fix For: 7.0.0, 6.0.1
{code}
left <- Table$create(
one = c("a", "b"),
two = 1:2
)
right <- Table$create(
three = TRUE,
dos = 2L
)
left %>%
rename(dos = two)
# InMemoryDataset (query)
# one: string
# dos: int32
# See $.data for the source Arrow object
left %>%
rename(dos = two) %>%
left_join(right)
# InMemoryDataset (query)
# one: string
# dos: int32
# three: bool
# See $.data for the source Arrow object
left %>%
rename(dos = two) %>%
left_join(right) %>%
collect()
# Error: Invalid: No match or multiple matches for key field reference
FieldRef.Name(dos) on left side of the join
# ../src/arrow/compute/exec/hash_join_node.cc:95 ValidateSchemas(join_type,
left_schema, left_keys, left_output, right_schema, right_keys, right_output,
left_field_name_prefix, right_field_name_prefix)
# ../src/arrow/compute/exec/hash_join_node.cc:311 schema_mgr->Init(
join_options.join_type, *(inputs[0]->output_schema()), join_options.left_keys,
join_options.left_output, *(inputs[1]->output_schema()),
join_options.right_keys, join_options.right_output,
join_options.output_prefix_for_left, join_options.output_prefix_for_right)
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)