Skip to content

Support packed repeated fields#30

Merged
bluele merged 18 commits intodatachainlab:masterfrom
siburu:packed-repeated
Jan 14, 2022
Merged

Support packed repeated fields#30
bluele merged 18 commits intodatachainlab:masterfrom
siburu:packed-repeated

Conversation

@siburu
Copy link
Contributor

@siburu siburu commented Dec 28, 2021

close #23 by:

  • enabling to decode packed and unpacked repeated fields regardless of [packed=...] options
  • enabling to encode packed and unpacked repeated fields according to [packed=...] options
    • If there's no option specified, scalar numeric repeated fields are encoded in a packed manner.

Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
…ted fields can't be packed...

Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
…mption) code

Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
…ionally

Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
…4} and generation to ProtoBufRuntime and fix the generator to generate estimate_packed_repeated_{enum_name} for each enum

Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
siburu added 2 commits January 5, 2022 20:59
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
…eated

Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
@siburu siburu marked this pull request as ready for review January 6, 2022 01:31
@siburu siburu requested a review from bluele January 6, 2022 01:31
#!/usr/bin/env bash
set -e
for file in proto/*
rootdir="$(dirname "$0")"
Copy link
Member

Choose a reason for hiding this comment

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

I think don't need to remove the shebang.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I removed them by mistake...

Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
@bluele bluele self-requested a review January 7, 2022 09:31
Copy link
Member

@bluele bluele left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@bluele bluele merged commit 23c7773 into datachainlab:master Jan 14, 2022
@siburu siburu deleted the packed-repeated branch February 14, 2022 07:23
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.

ProtobufRuntime issue, possibly when decoding array of int32

2 participants