Skip to content

System tables queries #590

@BadMachine

Description

@BadMachine

Specifications

  • Client Version: 1.1.0
  • InfluxDB Version: Core/Enterprise (3.2)
  • Platform: Win

Code sample to reproduce problem

const { InfluxDBClient } = require('@influxdata/influxdb3-client');

const host = 'http://addr:port';
const token = 'apiv3_token';
const database = '_internal'

const client = new InfluxDBClient({ host , token, database})

const query = `
    SELECT * from system.databases`;

const main = async () => {
	const queryResult = await client.query(query, database)

	for await (const row of queryResult) {
		console.log(`avg is ${row}`)

	}
}

main();

Expected behavior

All queries to the system tables work just fine

Actual behavior

Some of them fail due to a parsing error

Additional info

Some of the queries fail with parsing error (comes from apache-arrow dependency).
To reproduce: try to query system.databases and you will see the error. At the same time if you try to query from system.queries it works just fine

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