File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
packages/cubejs-api-gateway/src Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -1566,7 +1566,7 @@ class ApiGateway {
15661566 }
15671567
15681568 /**
1569- * Convert adapter's result and other request paramters to a final
1569+ * Convert adapter's result and other request parameters to a final
15701570 * result object.
15711571 * @internal
15721572 */
@@ -1709,6 +1709,17 @@ class ApiGateway {
17091709 const [ queryType , normalizedQueries ] =
17101710 await this . getNormalizedQueries ( query , context ) ;
17111711
1712+ if (
1713+ queryType !== QueryTypeEnum . REGULAR_QUERY &&
1714+ props . queryType == null
1715+ ) {
1716+ throw new UserError (
1717+ `'${ queryType
1718+ } ' query type is not supported by the client.` +
1719+ 'Please update the client.'
1720+ ) ;
1721+ }
1722+
17121723 let metaConfigResult = await ( await this
17131724 . getCompilerApi ( context ) ) . metaConfig ( request . context , {
17141725 requestId : context . requestId
@@ -1770,17 +1781,6 @@ class ApiGateway {
17701781 context ,
17711782 ) ;
17721783
1773- if (
1774- queryType !== QueryTypeEnum . REGULAR_QUERY &&
1775- props . queryType == null
1776- ) {
1777- throw new UserError (
1778- `'${ queryType
1779- } ' query type is not supported by the client.` +
1780- 'Please update the client.'
1781- ) ;
1782- }
1783-
17841784 if ( props . queryType === 'multi' ) {
17851785 res ( {
17861786 queryType,
You can’t perform that action at this time.
0 commit comments