Skip to content

When serialize FixedString and string is bigger than size defined in Table definition #2223

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

Open
mzitnik opened this issue Mar 14, 2025 · 0 comments
Labels
client-api-v2 data-type data type processing issues v2-feedback

Comments

@mzitnik
Copy link
Contributor

mzitnik commented Mar 14, 2025

Describe your feedback

Currently, the behavior is that if the string that is sent to serialize is bigger, we send only the length defined in the table schema.

A good approach is to have a flag that indicates if it's a bigger throw Exception or send only a string of a defined size.

Code example

How it's done today
writeFixedString only what is needed.

     BinaryStreamUtils.writeFixedString(stream, convertToString(value), column.getPrecision());
@mzitnik mzitnik added client-api-v2 data-type data type processing issues v2-feedback labels Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client-api-v2 data-type data type processing issues v2-feedback
Projects
None yet
Development

No branches or pull requests

1 participant