Skip to content

data_frame_tag_columns broken with batched writes in 0.17 #186

@amordoch

Description

@amordoch

Specifications

  • Client Version: 0.17
  • InfluxDB Version: 3.7.0
  • Platform: Docker

When supplying data_frame_tag_columns or the new write_dataframe and batch writes are enabled, the write fails with the following log message:

ERROR - The batch item wasn't processed successfully because: Got an unexpected keyword argument 'data_frame_tag_columns' to method post_write

Code sample to reproduce problem

df = pd.DataFrame({'time': [datetime.now()], 'a': [5], 'b': [6]})
client = InfluxDBClient3(
    "http://influx:8181"
    token="tok",
    database="db",
    write_client_options=write_client_options(
        write_options=WriteOptions(batch_size=100)
    ),
)
client.write_dataframe(
    df,
    "example",
    "time",
    tags=["b"],
)

Expected behavior

Write succeeds as it did previously

Actual behavior

Write fails

Additional info

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions