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

get_add_actions() MAX is not showing complete value #1534

Closed
Merlyn661992 opened this issue Jul 13, 2023 · 1 comment
Closed

get_add_actions() MAX is not showing complete value #1534

Merlyn661992 opened this issue Jul 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Merlyn661992
Copy link

Environment

Delta-rs version: 0.10.0

Binding:

Environment:

  • Cloud provider:
  • OS:
  • Other:

Bug

What happened:
get_add_actions() MAX is not showing complete value
What you expected to happen:
MAX to show complete max value for the column but it limits to only max 30-40 characters
How to reproduce it:
item = dt.get_add_actions().to_pydict()['max']
for k in item:
print(['columnName'])
More details:
each of this rows contains atleast 5000 characters but its restricted to only 30-40 characters, hence not able to find max length of column using get_add_actions
image

@Merlyn661992 Merlyn661992 added the bug Something isn't working label Jul 13, 2023
@wjones127
Copy link
Collaborator

Hello. String statistics are truncated intentionally. You should not use these statistics to find the max. If you read the Delta Protocol on statistics, you'll notice there is a footnote:

String columns are cut off at a fixed prefix length.

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

No branches or pull requests

2 participants