Skip to content

fix: handle case where multiple results include multiple tables #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion influxdb_client/client/flux_csv_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def _parse_flux_response(self):
start_new_table = False
table = None
parsing_state_error = False
table_base_index = 0

for csv in self._reader:
# debug
Expand Down Expand Up @@ -80,6 +81,7 @@ def _parse_flux_response(self):
yield self._prepare_data_frame()

start_new_table = True
table_base_index = table_index
table = FluxTable()
self._insert_table(table, table_index)
table_index = table_index + 1
Expand Down Expand Up @@ -111,7 +113,7 @@ def _parse_flux_response(self):
continue

# to int converions todo
current_index = int(csv[2])
current_index = int(csv[2]) + table_base_index

if current_index > (table_index - 1):
# create new table with previous column headers settings
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy