Browse Source

[editor] Fix argument positions for nvl2 in the embedded Impala reference manual

The embedded documentation was based on the official documentation for Impala < 3.1, in 3.1 this was adjusted on the Impala side with https://issues.apache.org/jira/browse/IMPALA-7740.
Johan Åhlén 2 years ago
parent
commit
6be9383d36

+ 2 - 2
desktop/core/src/desktop/js/sql/reference/impala/udfReference.ts

@@ -1540,10 +1540,10 @@ const CONDITIONAL_FUNCTIONS: UdfCategoryFunctions = {
     name: 'nvl2',
     name: 'nvl2',
     returnTypes: ['T'],
     returnTypes: ['T'],
     arguments: [[{ type: 'T' }], [{ type: 'T' }], [{ type: 'T' }]],
     arguments: [[{ type: 'T' }], [{ type: 'T' }], [{ type: 'T' }]],
-    signature: 'nvl2(T a, T ifNull, T ifNotNull)',
+    signature: 'nvl2(T a, T ifNotNull, T ifNull)',
     draggable: 'nvl2()',
     draggable: 'nvl2()',
     description:
     description:
-      'Enhanced variant of the nvl() function. Tests an expression and returns different result values depending on whether it is NULL or not. If the first argument is NULL, returns the second argument. If the first argument is not NULL, returns the third argument. Equivalent to the nvl2() function from Oracle.'
+      'Returns the second argument, ifNotNull, if the first argument is not NULL. Returns the third argument, ifNull, if the first argument is NULL.'
   },
   },
   zeroifnull: {
   zeroifnull: {
     name: 'zeroifnull',
     name: 'zeroifnull',