We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the documentation for serialized pages (https://prestodb.io/docs/current/develop/serialized-page.html#variable-width-encoding), offsets for VARIABLE_WIDTH columns are stated to be the starting offsets of each entry. I find that they are the ending offsets for each entry.
cc @arhimondr @mbasmanova
For the query (using binaryData=true)
SELECT s FROM ( VALUES 'cat', 'bird' ) AS t(s)
The offsets of the VARIABLE_WIDTH column should be [0, 3], the starting offsets according to https://prestodb.io/docs/current/develop/serialized-page.html#variable-width-encoding .
The offsets are [3, 7], the ending offsets.
Change either documentation or implementation to be consistent.
Issue query (with binaryData=true)
It should return a base64 encoded slice similar to
"AgAAAAQuAAAALgAAAJki1XAAAAAAAQAAAA4AAABWQVJJQUJMRV9XSURUSAIAAAADAAAABwAAAAAHAAAAY2F0YmlyZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
Notice that bytes 47..55 encode the offsets as two little-endian int32s, and they are 3 and 7. The documentation suggests that they should be 0 and 3.
I have worked around this, but the documentation and implementation should be consistent.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the documentation for serialized pages (https://prestodb.io/docs/current/develop/serialized-page.html#variable-width-encoding), offsets for VARIABLE_WIDTH columns are stated to be the starting offsets of each entry. I find that they are the ending offsets for each entry.
cc @arhimondr @mbasmanova
Your Environment
Expected Behavior
For the query (using binaryData=true)
The offsets of the VARIABLE_WIDTH column should be [0, 3], the starting offsets according to https://prestodb.io/docs/current/develop/serialized-page.html#variable-width-encoding .
Current Behavior
The offsets are [3, 7], the ending offsets.
Possible Solution
Change either documentation or implementation to be consistent.
Steps to Reproduce
Issue query (with binaryData=true)
It should return a base64 encoded slice similar to
Notice that bytes 47..55 encode the offsets as two little-endian int32s, and they are 3 and 7. The documentation suggests that they should be 0 and 3.
Context
I have worked around this, but the documentation and implementation should be consistent.
The text was updated successfully, but these errors were encountered: