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

[PROTOCOL] Fix inline DV example in PROTOCOL.md #3063

Closed

Conversation

nicklan
Copy link
Collaborator

@nicklan nicklan commented May 7, 2024

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (protocol.md fix)

Description

The previous example was incorrect. It had the magic encoded in big-endian, but it should be little-endian. This fixes it.

To see that the previous one was incorrect, you can go to https://www.dcode.fr/ascii-85-encoding, and decode wi5b=000010000siXQKl0rr91000f55c8Xg0@@D72lkbi5=-{L (be sure to select the zeromq encoding). The first 4 bytes of this decode to 0x64, 0x39, 0xD3, 0xD0. This is 1681511376 (the correct magic), but only if you decode as Big endian.

The new value decodes to 0xD1 0xD3 0x39 0x64, which is 1681511377 in little Endian.

How was this patch tested?

Tested in this pr in the rust kernel

Does this PR introduce any user-facing changes?

Was generated when the encoding was incorrect in the code as well
@vkorukanti vkorukanti changed the title [Protocol.md] Fix inline DV example in PROTOCOL.md [PROTOCOL] Fix inline DV example in PROTOCOL.md May 7, 2024
@felipepessoto
Copy link
Contributor

felipepessoto commented May 7, 2024

Is this duplicated? #2050

Fix #1905

@nicklan
Copy link
Collaborator Author

nicklan commented May 7, 2024

Is this duplicated? #2050

Fix #1905

Ohh yep, did not see that one. We should merge that one :)

@nicklan nicklan closed this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants