You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Support casting from storage type to extension type #30057
Status CastFromExtension(KernelContext* ctx, const ExecBatch& batch, Datum* out) {
So the other way around could be pretty similar. However, I'm wondering if a cast to an extension type is truly possible? When coming from an extension type the built-in type can be cast from the extension's physical storage. But would going the other way around would require a creation of a new ExtensionArray instance that populates some of the additional methods?
Activity
asfimport commentedon Jan 7, 2022
Will Ayd / @WillAyd:
Did a little research here. I see the casting from an extension type is handled here:
arrow/cpp/src/arrow/compute/kernels/scalar_cast_internal.cc
Line 190 in e64480d
So the other way around could be pretty similar. However, I'm wondering if a cast to an extension type is truly possible? When coming from an extension type the built-in type can be cast from the extension's physical storage. But would going the other way around would require a creation of a new ExtensionArray instance that populates some of the additional methods?
asfimport commentedon Jan 10, 2022
Joris Van den Bossche / @jorisvandenbossche:
The ExtensionType instance can create such an array, see eg
arrow/cpp/src/arrow/extension_type.h
Lines 87 to 89 in e64480d
asfimport commentedon Sep 27, 2022
Joris Van den Bossche / @jorisvandenbossche:
This is being addressed in #14106
asfimport commentedon Oct 11, 2022
Joris Van den Bossche / @jorisvandenbossche:
Resolved by #14106