Open pitrou opened 1 year ago
@felipecrv I don't know if a nice migration can be found for this.
@felipecrv I don't know if a nice migration can be found for this.
We could deprecate accessors like null_count
and add a NullCount
that returns an optional
. Even with the optional-returning functions, I think it's good to still have the HasXXX()
functions.
Describe the enhancement requested
Currently, our Statistics classes use a cumbersome mix of
HasXXX()
andxxx()
accessors. It would be nice to instead use the more idiomatic C++17std::optional
.This transition is made more cumbersome by
EncodedStatistics
, which directly exposes those attributes instead of providing accessors.Component(s)
C++