shuwenwei opened a new pull request, #724:
URL: https://github.com/apache/tsfile/pull/724

   ### Purpose
   
   * Ensure the "data type modified" state that prevents using statistics is 
propagated from time series metadata down to chunk metadata and is considered 
when deciding whether metadata is "modified".
   * Fix lost/ignored data-type-modified information when metadata is copied or 
passed down, so downstream consumers correctly treat metadata as modified when 
statistics cannot be used.
   ### What changed
   
   * Added a new boolean field dataTypeModifiedAndCannotUseStatistics to:
        * TimeseriesMetadata
        * ChunkMetadata
   * Added accessor/mutator methods for the new flag to:
        * ITimeSeriesMetadata (interface)
        * IChunkMetadata (interface)
   * Implemented propagation and usage:
        * TimeseriesMetadata.getCopiedChunkMetadataList now copies the 
dataTypeModifiedAndCannotUseStatistics flag into copied ChunkMetadata instances.
        * TimeseriesMetadata.isModified and ChunkMetadata.isModified now return 
true if either the existing modified flag or 
dataTypeModifiedAndCannotUseStatistics is true.
        * ChunkMetadata.setDataTypeModifiedAndCannotUseStatistics and 
TimeseriesMetadata.setDataTypeModifiedAndCannotUseStatistics use |= semantics 
to accumulate the flag (preserve any previous true).
        * AbstractAlignedChunkMetadata and AbstractAlignedTimeSeriesMetadata 
delegate the new getter/setter to their underlying time/timeseries metadata 
objects so aligned metadata also exposes and propagates the flag.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to