Skip to content
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

Deltalake-sink does not support decimal array data type #16352

Closed
xuefengze opened this issue Apr 17, 2024 · 1 comment · Fixed by #16391
Closed

Deltalake-sink does not support decimal array data type #16352

xuefengze opened this issue Apr 17, 2024 · 1 comment · Fixed by #16391
Labels
type/bug Something isn't working
Milestone

Comments

@xuefengze
Copy link
Contributor

rw-streaming risingwave_stream::task::stream_manager: actor exit with error actor_id=21 error=Executor error: Sink error: DeltaLake error: convert record batch error: Convert from arrow error: Cast error: Casting from LargeBinary to Decimal128(10, 0) not supported

in spark:

create table delta.`s3a://deltalake/decimal`(id int, d ARRAY<decimal>) using delta;

rw:

CREATE TABLE decimal_test (
  id int,
  d decimal[]
);

INSERT INTO decimal_test VALUES (1, array[]::decimal[]);

create sink decimal_sink from decimal_test
with (
    connector = 'deltalake',
    type = 'append-only',
    force_append_only='true',
    location = 's3a://deltalake/decimal',
    s3.access.key = 'hummockadmin',
    s3.secret.key = 'hummockadmin',
    s3.endpoint = 'http://minio-0:9301'
);
@xuefengze xuefengze added the type/bug Something isn't working label Apr 17, 2024
@github-actions github-actions bot added this to the release-1.9 milestone Apr 17, 2024
@chenzl25
Copy link
Contributor

cc @ZENOTME It seems the Array of the decimal type is still being converted into LargeBinary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants