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 @@ -1568,7 +1568,7 @@ class ApiGateway {
15681568 }
15691569
15701570 /**
1571- * Convert adapter's result and other request paramters to a final
1571+ * Convert adapter's result and other request parameters to a final
15721572 * result object.
15731573 * @internal
15741574 */
@@ -1711,6 +1711,17 @@ class ApiGateway {
17111711 const [ queryType , normalizedQueries ] =
17121712 await this . getNormalizedQueries ( query , context ) ;
17131713
1714+ if (
1715+ queryType !== QueryTypeEnum . REGULAR_QUERY &&
1716+ props . queryType == null
1717+ ) {
1718+ throw new UserError (
1719+ `'${ queryType
1720+ } ' query type is not supported by the client.` +
1721+ 'Please update the client.'
1722+ ) ;
1723+ }
1724+
17141725 let metaConfigResult = await ( await this
17151726 . getCompilerApi ( context ) ) . metaConfig ( request . context , {
17161727 requestId : context . requestId
@@ -1772,17 +1783,6 @@ class ApiGateway {
17721783 context ,
17731784 ) ;
17741785
1775- if (
1776- queryType !== QueryTypeEnum . REGULAR_QUERY &&
1777- props . queryType == null
1778- ) {
1779- throw new UserError (
1780- `'${ queryType
1781- } ' query type is not supported by the client.` +
1782- 'Please update the client.'
1783- ) ;
1784- }
1785-
17861786 if ( props . queryType === 'multi' ) {
17871787 res ( {
17881788 queryType,
You can’t perform that action at this time.
0 commit comments