Hey folks,

I'm working on adding support for nested sort columns to arrow-go
(https://github.com/apache/arrow-go/pull/1337).

My initial goal was to implement this in a backwards compatible way
but I ran into a hiccup and I'm looking for input on how to proceed.

Two key questions:

1. What is the preferred option for implementing this while preserving
backwards compat?

2. What is our appetite for a breaking change and what should the API
look like if we go this route?

Re (1): I don't necessarily have any approaches that I _like_. Some
approaches that don't like include adding a new "stringly typed"
column path field or adding a totally parallel AP (e.g. a
"DeepSortKey" and separate set of Sort* functions). Suggestions welcome!

Re (2): Matt Topol suggested using the FieldRef type as it was more
analogous to the C++ implementation. I like this approach better than
my initial impl, which uses an int slice, and while it still breaks
comparability of SortKey I'd argue its a bit more idiomatic.

FWIW my preference is to go with Matt's suggestion above.

Thanks for your time,

-- Samani

Reply via email to