datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Add insert_or_update and get_payloads methods to binary_map/binary_view_map

Open s5dsn-eqee opened this issue 2 years ago • 3 comments

Is your feature request related to a problem or challenge?

Currently, in the datafusion-functions-extra repository, we have copied binary_map and binary_view_map from DataFusion. However, the insert_or_updateand get_payloads methods are missing from the original binary_map and binary_view_map implementations in DataFusion.

To avoid code duplication and ensure that these methods are available in the original DataFusion project, it would be beneficial to move these methods to the core DataFusion repository.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

s5dsn-eqee avatar Sep 23 '24 15:09 s5dsn-eqee

take

s5dsn-eqee avatar Sep 23 '24 15:09 s5dsn-eqee

in the datafusion-functions-extra repository, we have copied binary_map and binary_view_map

Is there any reason why can't we just import from datafusion but require copying the code?

jayzhan211 avatar Sep 25 '24 00:09 jayzhan211

The reason we copied the map instead of importing directly from DataFusion is that the version in datafusion-functions-extra includes two additional methods. To avoid waiting for the next DataFusion release, we copied the map and added those methods locally.

https://github.com/apache/datafusion/pull/12385#issuecomment-2364555142

s5dsn-eqee avatar Sep 25 '24 07:09 s5dsn-eqee