docs: Fix some typos in comments as I noticed them
parent
d37af1a7f5
commit
9043966443
|
@ -301,7 +301,7 @@ mod tests {
|
||||||
seq_num_end,
|
seq_num_end,
|
||||||
3,
|
3,
|
||||||
INITIAL_COMPACTION_LEVEL,
|
INITIAL_COMPACTION_LEVEL,
|
||||||
None, // todo: this will have value when #3968 is done
|
None, // todo: this will have value when #3968 is done
|
||||||
);
|
);
|
||||||
assert_eq!(expected_meta, meta);
|
assert_eq!(expected_meta, meta);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1153,8 +1153,8 @@ impl DataBuffer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// BufferBatch is a MutauableBatch with its ingesting order, sequencer_number, that
|
/// BufferBatch is a MutableBatch with its ingesting order, sequencer_number, that helps the
|
||||||
/// helps the ingester keep the batches of data in thier ingesting order
|
/// ingester keep the batches of data in their ingesting order
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct BufferBatch {
|
pub struct BufferBatch {
|
||||||
/// Sequence number of the first write in this batch
|
/// Sequence number of the first write in this batch
|
||||||
|
@ -1172,7 +1172,7 @@ pub struct SnapshotBatch {
|
||||||
pub(crate) min_sequencer_number: SequenceNumber,
|
pub(crate) min_sequencer_number: SequenceNumber,
|
||||||
/// Max sequencer number of its combined BufferBatches
|
/// Max sequencer number of its combined BufferBatches
|
||||||
pub(crate) max_sequencer_number: SequenceNumber,
|
pub(crate) max_sequencer_number: SequenceNumber,
|
||||||
/// Data of its comebined BufferBatches kept in one RecordBatch
|
/// Data of its combined BufferBatches kept in one RecordBatch
|
||||||
pub(crate) data: Arc<RecordBatch>,
|
pub(crate) data: Arc<RecordBatch>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1209,13 +1209,13 @@ impl SnapshotBatch {
|
||||||
/// a parquet file for given set of SnapshotBatches
|
/// a parquet file for given set of SnapshotBatches
|
||||||
#[derive(Debug, PartialEq, Clone)]
|
#[derive(Debug, PartialEq, Clone)]
|
||||||
pub struct PersistingBatch {
|
pub struct PersistingBatch {
|
||||||
/// Sesquencer id of the data
|
/// Sequencer id of the data
|
||||||
pub(crate) sequencer_id: SequencerId,
|
pub(crate) sequencer_id: SequencerId,
|
||||||
|
|
||||||
/// Table id of the data
|
/// Table id of the data
|
||||||
pub(crate) table_id: TableId,
|
pub(crate) table_id: TableId,
|
||||||
|
|
||||||
/// Parittion Id of the data
|
/// Partition Id of the data
|
||||||
pub(crate) partition_id: PartitionId,
|
pub(crate) partition_id: PartitionId,
|
||||||
|
|
||||||
/// Id of to-be-created parquet file of this data
|
/// Id of to-be-created parquet file of this data
|
||||||
|
|
|
@ -270,7 +270,7 @@ pub fn chunks_have_stats(chunks: &[Arc<dyn QueryChunk>]) -> bool {
|
||||||
|
|
||||||
pub fn compute_sort_key_for_chunks(schema: &Schema, chunks: &[Arc<dyn QueryChunk>]) -> SortKey {
|
pub fn compute_sort_key_for_chunks(schema: &Schema, chunks: &[Arc<dyn QueryChunk>]) -> SortKey {
|
||||||
if !chunks_have_stats(chunks) {
|
if !chunks_have_stats(chunks) {
|
||||||
// chunks have not enough stats, return its pk that is
|
// chunks have not enough stats, return its pk that is
|
||||||
// sorted lexicographically but time column always last
|
// sorted lexicographically but time column always last
|
||||||
SortKey::from_columns(schema.primary_key())
|
SortKey::from_columns(schema.primary_key())
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue