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
7
plugins/parsers/parquet/testcases/dense/expected.out
Normal file
7
plugins/parsers/parquet/testcases/dense/expected.out
Normal file
|
@ -0,0 +1,7 @@
|
|||
a,tag=row1 float_field=64 1710683695000000000
|
||||
b,tag=row1 float_field=65 1710683695000000000
|
||||
c,tag=row1 float_field=66 1710683695000000000
|
||||
d,tag=row1 float_field=67 1710683695000000000
|
||||
e,tag=row1 float_field=68 1710683695000000000
|
||||
f,tag=row1 float_field=69 1710683695000000000
|
||||
g,tag=row1 float_field=70 1710683695000000000
|
16
plugins/parsers/parquet/testcases/dense/generate.py
Normal file
16
plugins/parsers/parquet/testcases/dense/generate.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python
|
||||
import pandas
|
||||
import pyarrow
|
||||
import pyarrow.parquet
|
||||
|
||||
df = pandas.DataFrame({
|
||||
'tag': ["row1", "row1", "row1", "row1", "row1", "row1", "row1"],
|
||||
'float_field': [64.0, 65.0, 66.0, 67.0, 68.0, 69.0, 70.0],
|
||||
'str_field': ["a", "b", "c", "d", "e", "f", "g"],
|
||||
'timestamp': [
|
||||
1710683695, 1710683695, 1710683695, 1710683695, 1710683695,
|
||||
1710683695, 1710683695,
|
||||
]
|
||||
})
|
||||
|
||||
pyarrow.parquet.write_table(pyarrow.Table.from_pandas(df), "input.parquet")
|
BIN
plugins/parsers/parquet/testcases/dense/input.parquet
Normal file
BIN
plugins/parsers/parquet/testcases/dense/input.parquet
Normal file
Binary file not shown.
8
plugins/parsers/parquet/testcases/dense/telegraf.conf
Normal file
8
plugins/parsers/parquet/testcases/dense/telegraf.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.parquet"]
|
||||
data_format = "parquet"
|
||||
|
||||
measurement_column = "str_field"
|
||||
tag_columns = ["tag"]
|
||||
timestamp_column = "timestamp"
|
||||
timestamp_format = "unix"
|
Loading…
Add table
Add a link
Reference in a new issue