|
@@ -1225,47 +1225,19 @@ var SqlFunctions = (function () {
|
|
|
draggable: 'avg()',
|
|
draggable: 'avg()',
|
|
|
description: 'Returns the average of the elements in the group or the average of the distinct values of the column in the group.'
|
|
description: 'Returns the average of the elements in the group or the average of the distinct values of the column in the group.'
|
|
|
},
|
|
},
|
|
|
- count: {
|
|
|
|
|
- returnTypes: ['BIGINT'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'count([DISTINCT] col)',
|
|
|
|
|
- draggable: 'count()',
|
|
|
|
|
- description: 'count(*) - Returns the total number of retrieved rows, including rows containing NULL values. count(expr) - Returns the number of rows for which the supplied expression is non-NULL. count(DISTINCT expr[, expr]) - Returns the number of rows for which the supplied expression(s) are unique and non-NULL. Execution of this can be optimized with hive.optimize.distinct.rewrite.'
|
|
|
|
|
- },
|
|
|
|
|
- stddev_pop: {
|
|
|
|
|
- returnTypes: ['DOUBLE'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'stddev_pop(col)',
|
|
|
|
|
- draggable: 'stddev_pop()',
|
|
|
|
|
- description: 'Returns the standard deviation of a numeric column in the group.'
|
|
|
|
|
- },
|
|
|
|
|
- stddev_samp: {
|
|
|
|
|
- returnTypes: ['DOUBLE'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'stddev_samp(col)',
|
|
|
|
|
- draggable: 'stddev_samp()',
|
|
|
|
|
- description: 'Returns the unbiased sample standard deviation of a numeric column in the group.'
|
|
|
|
|
- },
|
|
|
|
|
- sum: {
|
|
|
|
|
- returnTypes: ['DOUBLE'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'sum(col)',
|
|
|
|
|
- draggable: 'sum()',
|
|
|
|
|
- description: 'Returns the sum of the elements in the group or the sum of the distinct values of the column in the group.'
|
|
|
|
|
- },
|
|
|
|
|
- max: {
|
|
|
|
|
- returnTypes: ['DOUBLE'],
|
|
|
|
|
|
|
+ collect_set: {
|
|
|
|
|
+ returnTypes: ['ARRAY'],
|
|
|
arguments: [[{type: 'T'}]],
|
|
arguments: [[{type: 'T'}]],
|
|
|
- signature: 'max(col)',
|
|
|
|
|
- draggable: 'max()',
|
|
|
|
|
- description: 'Returns the maximum value of the column in the group.'
|
|
|
|
|
|
|
+ signature: 'collect_set(col)',
|
|
|
|
|
+ draggable: 'collect_set()',
|
|
|
|
|
+ description: 'Returns a set of objects with duplicate elements eliminated.'
|
|
|
},
|
|
},
|
|
|
- min: {
|
|
|
|
|
- returnTypes: ['DOUBLE'],
|
|
|
|
|
|
|
+ collect_list: {
|
|
|
|
|
+ returnTypes: ['ARRAY'],
|
|
|
arguments: [[{type: 'T'}]],
|
|
arguments: [[{type: 'T'}]],
|
|
|
- signature: 'min(col)',
|
|
|
|
|
- draggable: 'min()',
|
|
|
|
|
- description: 'Returns the minimum of the column in the group.'
|
|
|
|
|
|
|
+ signature: 'collect_list(col)',
|
|
|
|
|
+ draggable: 'collect_list()',
|
|
|
|
|
+ description: 'Returns a list of objects with duplicates. (As of Hive 0.13.0.)'
|
|
|
},
|
|
},
|
|
|
corr: {
|
|
corr: {
|
|
|
returnTypes: ['DOUBLE'],
|
|
returnTypes: ['DOUBLE'],
|
|
@@ -1274,6 +1246,13 @@ var SqlFunctions = (function () {
|
|
|
draggable: 'corr()',
|
|
draggable: 'corr()',
|
|
|
description: 'Returns the Pearson coefficient of correlation of a pair of a numeric columns in the group.'
|
|
description: 'Returns the Pearson coefficient of correlation of a pair of a numeric columns in the group.'
|
|
|
},
|
|
},
|
|
|
|
|
+ count: {
|
|
|
|
|
+ returnTypes: ['BIGINT'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'count([DISTINCT] col)',
|
|
|
|
|
+ draggable: 'count()',
|
|
|
|
|
+ description: 'count(*) - Returns the total number of retrieved rows, including rows containing NULL values. count(expr) - Returns the number of rows for which the supplied expression is non-NULL. count(DISTINCT expr[, expr]) - Returns the number of rows for which the supplied expression(s) are unique and non-NULL. Execution of this can be optimized with hive.optimize.distinct.rewrite.'
|
|
|
|
|
+ },
|
|
|
covar_pop: {
|
|
covar_pop: {
|
|
|
returnTypes: ['DOUBLE'],
|
|
returnTypes: ['DOUBLE'],
|
|
|
arguments: [[{type: 'T'}], [{type: 'T'}]],
|
|
arguments: [[{type: 'T'}], [{type: 'T'}]],
|
|
@@ -1288,20 +1267,6 @@ var SqlFunctions = (function () {
|
|
|
draggable: 'covar_samp()',
|
|
draggable: 'covar_samp()',
|
|
|
description: 'Returns the sample covariance of a pair of a numeric columns in the group.'
|
|
description: 'Returns the sample covariance of a pair of a numeric columns in the group.'
|
|
|
},
|
|
},
|
|
|
- collect_set: {
|
|
|
|
|
- returnTypes: ['ARRAY'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'collect_set(col)',
|
|
|
|
|
- draggable: 'collect_set()',
|
|
|
|
|
- description: 'Returns a set of objects with duplicate elements eliminated.'
|
|
|
|
|
- },
|
|
|
|
|
- collect_list: {
|
|
|
|
|
- returnTypes: ['ARRAY'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'collect_list(col)',
|
|
|
|
|
- draggable: 'collect_list()',
|
|
|
|
|
- description: 'Returns a list of objects with duplicates. (As of Hive 0.13.0.)'
|
|
|
|
|
- },
|
|
|
|
|
histogram_numeric: {
|
|
histogram_numeric: {
|
|
|
returnTypes: ['ARRAY'],
|
|
returnTypes: ['ARRAY'],
|
|
|
arguments: [[{type: 'T'}], [{type: 'INT'}]],
|
|
arguments: [[{type: 'T'}], [{type: 'INT'}]],
|
|
@@ -1309,6 +1274,20 @@ var SqlFunctions = (function () {
|
|
|
draggable: 'array<struct {\'x\', \'y\'}> histogram_numeric()',
|
|
draggable: 'array<struct {\'x\', \'y\'}> histogram_numeric()',
|
|
|
description: 'Computes a histogram of a numeric column in the group using b non-uniformly spaced bins. The output is an array of size b of double-valued (x,y) coordinates that represent the bin centers and heights'
|
|
description: 'Computes a histogram of a numeric column in the group using b non-uniformly spaced bins. The output is an array of size b of double-valued (x,y) coordinates that represent the bin centers and heights'
|
|
|
},
|
|
},
|
|
|
|
|
+ max: {
|
|
|
|
|
+ returnTypes: ['DOUBLE'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'max(col)',
|
|
|
|
|
+ draggable: 'max()',
|
|
|
|
|
+ description: 'Returns the maximum value of the column in the group.'
|
|
|
|
|
+ },
|
|
|
|
|
+ min: {
|
|
|
|
|
+ returnTypes: ['DOUBLE'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'min(col)',
|
|
|
|
|
+ draggable: 'min()',
|
|
|
|
|
+ description: 'Returns the minimum of the column in the group.'
|
|
|
|
|
+ },
|
|
|
ntile: {
|
|
ntile: {
|
|
|
returnTypes: ['INT'],
|
|
returnTypes: ['INT'],
|
|
|
arguments: [[{type: 'INT'}]],
|
|
arguments: [[{type: 'INT'}]],
|
|
@@ -1330,27 +1309,6 @@ var SqlFunctions = (function () {
|
|
|
draggable: 'percentile_approx()',
|
|
draggable: 'percentile_approx()',
|
|
|
description: 'Returns an approximate pth percentile (or percentiles p1, p2, ..) of a numeric column (including floating point types) in the group. The B parameter controls approximation accuracy at the cost of memory. Higher values yield better approximations, and the default is 10,000. When the number of distinct values in col is smaller than B, this gives an exact percentile value.'
|
|
description: 'Returns an approximate pth percentile (or percentiles p1, p2, ..) of a numeric column (including floating point types) in the group. The B parameter controls approximation accuracy at the cost of memory. Higher values yield better approximations, and the default is 10,000. When the number of distinct values in col is smaller than B, this gives an exact percentile value.'
|
|
|
},
|
|
},
|
|
|
- variance: {
|
|
|
|
|
- returnTypes: ['DOUBLE'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'variance(col)',
|
|
|
|
|
- draggable: 'variance()',
|
|
|
|
|
- description: 'Returns the variance of a numeric column in the group.'
|
|
|
|
|
- },
|
|
|
|
|
- var_pop: {
|
|
|
|
|
- returnTypes: ['DOUBLE'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'var_pop(col)',
|
|
|
|
|
- draggable: 'var_pop()',
|
|
|
|
|
- description: 'Returns the variance of a numeric column in the group.'
|
|
|
|
|
- },
|
|
|
|
|
- var_samp: {
|
|
|
|
|
- returnTypes: ['DOUBLE'],
|
|
|
|
|
- arguments: [[{type: 'T'}]],
|
|
|
|
|
- signature: 'var_samp(col)',
|
|
|
|
|
- draggable: 'var_samp()',
|
|
|
|
|
- description: 'Returns the unbiased sample variance of a numeric column in the group.'
|
|
|
|
|
- },
|
|
|
|
|
regr_avgx: {
|
|
regr_avgx: {
|
|
|
returnTypes: ['DOUBLE'],
|
|
returnTypes: ['DOUBLE'],
|
|
|
arguments: [[{type: 'T'}], [{type: 'T'}]],
|
|
arguments: [[{type: 'T'}], [{type: 'T'}]],
|
|
@@ -1413,6 +1371,48 @@ var SqlFunctions = (function () {
|
|
|
signature: 'regr_syy(T independent, T dependent)',
|
|
signature: 'regr_syy(T independent, T dependent)',
|
|
|
draggable: 'regr_syy()',
|
|
draggable: 'regr_syy()',
|
|
|
description: 'Equivalent to regr_count(independent, dependent) * var_pop(independent). As of Hive 2.2.0.'
|
|
description: 'Equivalent to regr_count(independent, dependent) * var_pop(independent). As of Hive 2.2.0.'
|
|
|
|
|
+ },
|
|
|
|
|
+ stddev_pop: {
|
|
|
|
|
+ returnTypes: ['DOUBLE'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'stddev_pop(col)',
|
|
|
|
|
+ draggable: 'stddev_pop()',
|
|
|
|
|
+ description: 'Returns the standard deviation of a numeric column in the group.'
|
|
|
|
|
+ },
|
|
|
|
|
+ stddev_samp: {
|
|
|
|
|
+ returnTypes: ['DOUBLE'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'stddev_samp(col)',
|
|
|
|
|
+ draggable: 'stddev_samp()',
|
|
|
|
|
+ description: 'Returns the unbiased sample standard deviation of a numeric column in the group.'
|
|
|
|
|
+ },
|
|
|
|
|
+ sum: {
|
|
|
|
|
+ returnTypes: ['DOUBLE'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'sum(col)',
|
|
|
|
|
+ draggable: 'sum()',
|
|
|
|
|
+ description: 'Returns the sum of the elements in the group or the sum of the distinct values of the column in the group.'
|
|
|
|
|
+ },
|
|
|
|
|
+ variance: {
|
|
|
|
|
+ returnTypes: ['DOUBLE'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'variance(col)',
|
|
|
|
|
+ draggable: 'variance()',
|
|
|
|
|
+ description: 'Returns the variance of a numeric column in the group.'
|
|
|
|
|
+ },
|
|
|
|
|
+ var_pop: {
|
|
|
|
|
+ returnTypes: ['DOUBLE'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'var_pop(col)',
|
|
|
|
|
+ draggable: 'var_pop()',
|
|
|
|
|
+ description: 'Returns the variance of a numeric column in the group.'
|
|
|
|
|
+ },
|
|
|
|
|
+ var_samp: {
|
|
|
|
|
+ returnTypes: ['DOUBLE'],
|
|
|
|
|
+ arguments: [[{type: 'T'}]],
|
|
|
|
|
+ signature: 'var_samp(col)',
|
|
|
|
|
+ draggable: 'var_samp()',
|
|
|
|
|
+ description: 'Returns the unbiased sample variance of a numeric column in the group.'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
impala: {
|
|
impala: {
|
|
@@ -3129,6 +3129,13 @@ var SqlFunctions = (function () {
|
|
|
draggable: 'java_method()',
|
|
draggable: 'java_method()',
|
|
|
description: 'Calls a Java method by matching the argument signature, using reflection. (As of Hive 0.9.0.)'
|
|
description: 'Calls a Java method by matching the argument signature, using reflection. (As of Hive 0.9.0.)'
|
|
|
},
|
|
},
|
|
|
|
|
+ logged_in_user: {
|
|
|
|
|
+ returnTypes: ['STRING'],
|
|
|
|
|
+ arguments: [],
|
|
|
|
|
+ signature: 'logged_in_user()',
|
|
|
|
|
+ draggable: 'logged_in_user()',
|
|
|
|
|
+ description: 'Returns current user name from the session state (as of Hive 2.2.0). This is the username provided when connecting to Hive.'
|
|
|
|
|
+ },
|
|
|
md5: {
|
|
md5: {
|
|
|
returnTypes: ['STRING'],
|
|
returnTypes: ['STRING'],
|
|
|
arguments: [[{type: 'STRING'}, {type: 'BINARY'}]],
|
|
arguments: [[{type: 'STRING'}, {type: 'BINARY'}]],
|