Factorial function in Impala

0 votes
How can I find the factorial of a number using Impala query?
Jun 7 in Big Data Hadoop by Rishi
11 views

1 answer to this question.

0 votes

There are two ways to do this:

select factorial(5);
+--------------+
| factorial(5) |
+--------------+
| 120          |
+--------------+
select 5!;
+-----+
| 5!  |
+-----+
| 120 |
+-----+
answered Jun 7 by Reshma

Related Questions In Big Data Hadoop

0 votes
1 answer

How Impala is fast compared to Hive in terms of query response?

Impala provides faster response as it uses MPP(massively ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 10,030 points
222 views
0 votes
1 answer

What is Custom partitioner in Hadoop? How to write partition function ?

Don't think that in Hadoop the same ...READ MORE

answered Sep 18, 2018 in Big Data Hadoop by Frankie
• 9,810 points
103 views
0 votes
1 answer

Why is using Combiner function not preferred in shuffling?

Combiner function is not preferred because when ...READ MORE

answered Jan 22 in Big Data Hadoop by Omkar
• 67,120 points
14 views
0 votes
1 answer

Explain the function of ORDER-BY operator in pig?

Hi, The ORDER-BY operator is used to display ...READ MORE

answered May 6 in Big Data Hadoop by Gitika
• 19,720 points
14 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,030 points
2,026 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,030 points
188 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,242 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
751 views
0 votes
1 answer
0 votes
1 answer

Why should we use "distinct" keyword in pig script?

Hey, The "distinct" statement is very simple. It ...READ MORE

answered May 3 in Big Data Hadoop by Gitika
• 19,720 points
21 views