Skip to content

Stream support for query_data_frame #114

@kaheicanaan

Description

@kaheicanaan

I am working on a dataset which contains >10k fields in a measurement. I would like to query data the whole dataset of a given day (or several days) which makes the size of returned dataset very large. Here is my sample flux query:

from(bucket: "_bucket")
  |> range(start: _start, stop: _stop)
  |> filter(fn: (r) =>
    r._measurement == "_measurement"
)

Is it a good idea to add a kwarg stream: bool = False

def query_data_frame(self, query: str, org=None, data_frame_index: List[str] = None):

and then the API return the generator directly

_dataFrames = list(_parser.generator())

when stream=True?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      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