Member since
12-10-2015
58
Posts
24
Kudos Received
6
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1760 | 02-17-2016 04:12 AM | |
2946 | 02-03-2016 05:15 AM | |
1633 | 01-27-2016 09:13 AM | |
4135 | 01-27-2016 07:00 AM | |
2100 | 01-02-2016 03:29 PM |
12-23-2015
09:11 AM
Hi guys, The question is looking very simple.But i don't why i unable to get the solution.Think like we emp table similar to scott schema(oracle).I just want to write a query whose hiredate is more that hiredate of employee KING. Here is the Query: select ename,hiredate from emp e1 where e1.hiredate > (select hiredate from emp e2 where e2.ename='KING') But unfortunately we have only support for 'IN' (Subqueries) in hive.How to achieve the requirement.
... View more
Labels:
- Labels:
-
Apache Hive
12-22-2015
11:45 AM
1 Kudo
Hi guys, I know hive is Data Warehousing tool which is not suited as OLTP. In regular RDBMS Structure i have way like "Correlated queries" helps to find nth highest salary from a table as following. Is there any way in hive also.The query is related to true/false conditions. SELECT * /*This is the outer query part */
FROM Employee Emp1
WHERE (N-1) = ( /* Subquery starts here */
SELECT COUNT(DISTINCT(Emp2.Salary))
FROM Employee Emp2
WHERE Emp2.Salary > Emp1.Salary)
... View more
Labels:
- Labels:
-
Apache Hive
12-21-2015
01:43 PM
1 Kudo
I have seen URLDecoder as an example for Pig Dynamic Invokers. Can i have more examples like String related functions or may be other that pig use as dynamic invokers?
... View more
Labels:
- Labels:
-
Apache Pig
12-18-2015
10:35 AM
@Guilherme Braccialli thank you.its working.
... View more
12-18-2015
08:48 AM
1 Kudo
I would like to select one normal datatype column(primitive) column along with UDTF as follows.But it is throwing error like SemanticException [Error 10081]: UDTF's are not supported outside the SELECT clause, nor nested in expressions I understood the problem.Don't we have any way to do this. Query is : select col1,explode(split(col2,'\\s')) from table_name; assume col2 is int type and col2 is string.
... View more
Labels:
- Labels:
-
Apache Hive
12-18-2015
05:33 AM
I guess,from_unixtime function has to convert bigint to "yyyy-MM-dd" not "yyyy-mm-dd".
... View more
12-17-2015
10:33 AM
1 Kudo
Hi everyone, In my hive table i have values in one column are like " Thu Dec 17 15:55:08 IST 2015 " .For this particular column i would like to find "week of the year".How can i do that one .Assume column name is survey_date and data type is string.
... View more
Labels:
- Labels:
-
Apache Hive
12-15-2015
12:42 PM
@Jonas Straub I am not working on any use case similar to community. I am working on Hadoop only. Just thinking how we can connect our HDP tools to power communities like this.
... View more
12-15-2015
12:35 PM
1 Kudo
Yupp..its working fine...Tq
... View more
- « Previous
- Next »