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

fix(function): fix object_keys array type #5532

Merged
merged 6 commits into from
May 24, 2022

Conversation

b41sh
Copy link
Member

@b41sh b41sh commented May 23, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

fix object_keys array type

Changelog

  • Bug Fix

Related Issues

Fixes #5528

@vercel
Copy link

vercel bot commented May 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
databend ✅ Ready (Inspect) Visit Preview May 24, 2022 at 8:51AM (UTC)

@b41sh b41sh requested review from sundy-li and fkuner May 23, 2022 11:51
@mergify
Copy link
Contributor

mergify bot commented May 23, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label May 23, 2022
@fkuner
Copy link
Contributor

fkuner commented May 23, 2022

Why use DataTypeImpl::Array(ArrayType::create(StringType::new_impl()))?

@b41sh
Copy link
Member Author

b41sh commented May 23, 2022

Why use DataTypeImpl::Array(ArrayType::create(StringType::new_impl()))?

this data type should be the Array data type, not the inner data type.

@@ -81,7 +81,7 @@ impl Function for ObjectKeysFunction {
}

Ok(ArrayColumn::from_data(
StringType::new_impl(),
DataTypeImpl::Array(ArrayType::create(StringType::new_impl())),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need as test to cover the bug

@BohuTANG
Copy link
Member

@mergify update

@mergify
Copy link
Contributor

mergify bot commented May 24, 2022

update

✅ Branch has been successfully updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-review pr-bugfix this PR patches a bug in codebase
Projects
Development

Successfully merging this pull request may close these issues.

bug: ArrayColumn::as_arrow_array panic
5 participants