-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C++][Python] Support ExtensionType arrays in more kernels #22304
Comments
Antoine Pitrou / @pitrou:
|
Joris Van den Bossche / @jorisvandenbossche: |
Joris Van den Bossche / @jorisvandenbossche:
|
Perhaps, though I'm not sure what it should look like. Perhaps like this: class ExtensionType {
// ...
bool CanCastTo(const DataType& to_type);
Result<Datum> CastTo(const Datum& value, std::shared_ptr<DataType> to_type,
const CastOptions& options = CastOptions::Safe(),
ExecContext* ctx = NULLPTR);
} cc @bkietz |
Antoine Pitrou / @pitrou: |
Antoine Pitrou / @pitrou: |
Clark Zinzow: |
Clark Zinzow: |
From a quick test (through Python), it seems that
slice
andtake
work, but the following not:cast
: it could rely on the casting rules for the storage type. Or do we want that you explicitly have to take the storage array before casting?dictionary_encode
/unique
Reporter: Joris Van den Bossche / @jorisvandenbossche
Watchers: Rok Mihevc / @rok
Related issues:
Note: This issue was originally created as ARROW-5890. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: