Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
6
plugins/parsers/parquet/testcases/sparse/expected.out
Normal file
6
plugins/parsers/parquet/testcases/sparse/expected.out
Normal 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
|
20
plugins/parsers/parquet/testcases/sparse/generate.py
Normal file
20
plugins/parsers/parquet/testcases/sparse/generate.py
Normal 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")
|
BIN
plugins/parsers/parquet/testcases/sparse/input.parquet
Normal file
BIN
plugins/parsers/parquet/testcases/sparse/input.parquet
Normal file
Binary file not shown.
7
plugins/parsers/parquet/testcases/sparse/telegraf.conf
Normal file
7
plugins/parsers/parquet/testcases/sparse/telegraf.conf
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue