Skip to content

Can this be used with local installation of influx db #16

@arunjose696

Description

@arunjose696

Can FlightSQLClient be used with local installation of influx-db ,

query_client = FlightSQLClient(
    host = "localhost",
    token = token,
   port=8086,
    metadata={"bucket-name": bucket_name})
query = """SELECT *
        FROM table
        """
info = query_client.execute(query)

I got this error when trying to do this

File "<stdin>", line 1, in <module>
 File "C:\Users\arunj\anaconda3\envs\newenv\lib\site-packages\flightsql\client.py", line 123, in execute
   return self._get_flight_info(flightsql.CommandStatementQuery(query=query), call_options)
 File "C:\Users\arunj\anaconda3\envs\newenv\lib\site-packages\flightsql\util.py", line 8, in g
   return f(self, *args, **kwargs)
 File "C:\Users\arunj\anaconda3\envs\newenv\lib\site-packages\flightsql\client.py", line 293, in _get_flight_info
   return self.client.get_flight_info(flight_descriptor(command), options)

 File "pyarrow\_flight.pyx", line 1506, in pyarrow._flight.FlightClient.get_flight_info
 File "pyarrow\_flight.pyx", line 71, in pyarrow._flight.check_flight_status
pyarrow._flight.FlightUnavailableError: Flight returned unavailable error, with message: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8086: Ssl handshake failed: SSL_ERROR_SSL: error:0A00010B:SSL routines::wrong version number

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions