Skip to content

Commit 00dae6e

Browse files
committed
update doc to change i32 to u32
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
1 parent b78f2b9 commit 00dae6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/promql/src/range_array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::error::{EmptyRangeSnafu, IllegalRangeSnafu, Result};
2525
///
2626
/// It's build on top of Arrow's [DictionaryArray]. [DictionaryArray] contains two
2727
/// sub-arrays, one for dictionary key and another for dictionary value. Both of them
28-
/// can be arbitrary types, but here the key array is fixed to i64 type.
28+
/// can be arbitrary types, but here the key array is fixed to u32 type.
2929
///
3030
/// ```text
3131
/// │ ┌─────┬─────┬─────┬─────┐
@@ -37,13 +37,13 @@ use crate::error::{EmptyRangeSnafu, IllegalRangeSnafu, Result};
3737
/// Array │ └────────────────────────────┘(Any Type)
3838
/// ```
3939
///
40-
/// Because the i64 key array is reinterpreted into two i32 for offset and length
40+
/// Because the i64 key array is reinterpreted into two u32 for offset and length
4141
/// in [RangeArray] to represent a "range":
4242
///
4343
/// ```text
4444
/// 63 32│31 0
4545
/// ┌───────────────┼───────────────┐
46-
/// │ offset (i32) │ length (i32) │
46+
/// │ offset (u32) │ length (u32) │
4747
/// └───────────────┼───────────────┘
4848
/// ```
4949
///

0 commit comments

Comments
 (0)