1
0
Fork 0

Adding upstream version 1.34.4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-24 07:26:29 +02:00
parent e393c3af3f
commit 4978089aab
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4963 changed files with 677545 additions and 0 deletions

View file

@ -0,0 +1,6 @@
test,tag=row1 float_field=64 1709313032000000000
test,tag=row2 float_field=65 1709399432000000000
test,tag=row3 int_field=65 1709485832000000000
test,tag=row4 uint_field=5 1709572232000000000
test,tag=row5 bool_field=true 1709658632000000000
test,str_field=blargh,tag=multi_field bool_field=false 1709831432000000000

View file

@ -0,0 +1,20 @@
#!/usr/bin/env python
import pandas
import pyarrow
import pyarrow.parquet
df = pandas.DataFrame({
'tag': ["row1", "row2", "row3", "row4", "row5", "row6", "multi_field"],
'float_field': [64.0, 65.0, None, None, None, None, None],
'int_field': [None, None, 65, None, None, None, None],
'uint_field': [None, None, None, 5, None, None, None],
'bool_field': [None, None, None, None, True, None, False],
'str_field': [None, None, None, None, None, "blargh", "blargh"],
'timestamp': [
"2024-03-01T17:10:32", "2024-03-02T17:10:32", "2024-03-03T17:10:32",
"2024-03-04T17:10:32", "2024-03-05T17:10:32", "2024-03-06T17:10:32",
"2024-03-07T17:10:32",
]
})
pyarrow.parquet.write_table(pyarrow.Table.from_pandas(df), "input.parquet")

Binary file not shown.

View file

@ -0,0 +1,7 @@
[[inputs.test]]
files = ["input.parquet"]
data_format = "parquet"
tag_columns = ["tag", "str_field"]
timestamp_column = "timestamp"
timestamp_format = "2006-01-02T15:04:05"