InfluxDB: Fix query call with flux and sql when backend migration disbaled (#77760)

Only run through with classicQuery if the language is influxql and backend migration is disabled
This commit is contained in:
ismail simsek
2023-11-06 23:14:27 +01:00
committed by GitHub
parent 4fbd9a55b2
commit 581b93c124

View File

@@ -138,12 +138,12 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
return merge(...streams);
}
if (this.isMigrationToggleOnAndIsAccessProxy()) {
return super.query(filteredRequest);
if (this.version === InfluxVersion.InfluxQL && !this.isMigrationToggleOnAndIsAccessProxy()) {
// Fallback to classic query support
return this.classicQuery(request);
}
// Fallback to classic query support
return this.classicQuery(request);
return super.query(filteredRequest);
}
getQueryDisplayText(query: InfluxQuery) {