You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datasketches.apache.org by "tisonkun (via GitHub)" <gi...@apache.org> on 2025/12/16 09:15:00 UTC
[PR] chore: check InsufficientData before index access (datasketches-rust)
tisonkun opened a new pull request, #24:
URL: https://github.com/apache/datasketches-rust/pull/24
We may later build a shared serde utils where deserialize use a cursor like #23 so we can check insufficient data on the fly, and advancing the curosr on reading to avoid hardcode offset.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org
Re: [PR] chore: check InsufficientData before index access (datasketches-rust)
Posted by "notfilippo (via GitHub)" <gi...@apache.org>.
notfilippo commented on PR #24:
URL: https://github.com/apache/datasketches-rust/pull/24#issuecomment-3659560276
> we may later have a generally similar serde workflow.
I think it's fine to wait a couple of sketches to be merged before we start unifying the interface. Might help identifying parallels between different implementations.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org
Re: [PR] chore: check InsufficientData before index access (datasketches-rust)
Posted by "freakyzoidberg (via GitHub)" <gi...@apache.org>.
freakyzoidberg merged PR #24:
URL: https://github.com/apache/datasketches-rust/pull/24
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org
Re: [PR] chore: check InsufficientData before index access (datasketches-rust)
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on PR #24:
URL: https://github.com/apache/datasketches-rust/pull/24#issuecomment-3659550902
cc @notfilippo @freakyzoidberg what do you think? So far, it's OK to let the first 2 or 3 impls uses their own logics but we may later have a generally similar serde codepath.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org
Re: [PR] chore: check InsufficientData before index access (datasketches-rust)
Posted by "notfilippo (via GitHub)" <gi...@apache.org>.
notfilippo commented on code in PR #24:
URL: https://github.com/apache/datasketches-rust/pull/24#discussion_r2622456476
##########
src/hll/mod.rs:
##########
@@ -69,8 +69,8 @@ mod list;
mod serialization;
mod sketch;
-pub use estimator::NumStdDev;
-pub use sketch::HllSketch;
+pub use self::estimator::NumStdDev;
+pub use self::sketch::HllSketch;
Review Comment:
What's the idea behind this? Do we have tools to enforce this style repo-wide?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org
Re: [PR] chore: check InsufficientData before index access (datasketches-rust)
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on code in PR #24:
URL: https://github.com/apache/datasketches-rust/pull/24#discussion_r2622622813
##########
src/hll/mod.rs:
##########
@@ -69,8 +69,8 @@ mod list;
mod serialization;
mod sketch;
-pub use estimator::NumStdDev;
-pub use sketch::HllSketch;
+pub use self::estimator::NumStdDev;
+pub use self::sketch::HllSketch;
Review Comment:
I found it when a mod name sometimes conflicts with a dependency name. Using `self::sketch::HllSketch` always unambiguously refers to the proper symbol.
> Do we have tools to enforce this style repo-wide?
Not quite easy. One can define a custom clippy rule or work with ast-grep. But this rule depends on whether the (pub use) symbol is within this crate/module.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org