We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc6412 commit b5ad7d3Copy full SHA for b5ad7d3
src/handlers/http/modal/utils/ingest_utils.rs
@@ -81,7 +81,7 @@ pub async fn push_logs(
81
)?;
82
83
for value in data {
84
- let size = value.to_string().into_bytes().len();
+ let size = serde_json::to_vec(&value).unwrap().len(); // string length need not be the same as byte length
85
let parsed_timestamp = get_parsed_timestamp(&value, time_partition.as_ref());
86
let partition_values = match custom_partition.as_ref() {
87
Some(custom_partition) => {
0 commit comments