I have this question: Show the top 5 game Disciplines for the countries who got more than 10 gold medals. my code is: select distinct t.discipline, m ...
I have this question: Show the top 5 game Disciplines for the countries who got more than 10 gold medals. my code is: select distinct t.discipline, m ...
I'm looking to get count of records in which a column(type) of json type has certain key:value in table named product_type. Something like- What ...
We are using hive 3.1.3 and we're running Queries on Tez engine (Hive on Tez) on Cloudera platform. We are still in the beginning phase and we have a ...
I have a hive table with IDs and associated events that look like below. The table can have multiple event_number for the same ID - I want to find ...
I am trying this query in Hive and it's not working. Error I am getting: cannot recognize input near 'select' 'count' '(' in expression specificati ...
I am joining 2 tables and using <= in Join Condition also applying one filter condition so that it can only fetch remaining data from left table wh ...
Hellow Everyone, Someone Kinldy help me to Implement Below logic In Hive.I have 2 Table in hive(table1,table2). I need to replace 0's by 9 from One c ...
is there any way to replace digits using substring in Hive. see the below table I have tried using below query, and it is working as expected.(H ...
I have one table in Hive. Here I am generating one new column by comparing the length of both the column. i.e. here if Vari_Length length is le ...
I have a sample.hql file which contains below lines. I am trying to run it from shell command I want to find out if a particular column is present ...
I am querying my data using this query SELECT date_col,max(rate) FROM crypto group by date_col ; I am expecting a single row but it is returnin ...
Hi I am very much new to this. I have three columns YEAR, MONTH,DAY in INTEGER format. I want to load the script and combine YEAR,MONTH,DAY as single ...
i am using the following query: and getting the following error: Please help me with the same. ...
I'm trying to get cumulative sum in one query. It works fine in SQL, PRESTO etc. but not in HIVE, which throws error msg. store ...
Asked in an interview: I have 2 tables, one table has records like ID, Name, address. id(pk) is from 1 to 10000000. Another table has records from 10 ...
I have two tables. Table t1 defines the metadata. ie, what are the attribute values an ideal transaction should contain. It also defines the order of ...
I have a query which provides the max_processed_date (it provides a single value) and this date is used to fetch data from master_table.I am using the ...
This is one of the key of hive JSON. I want to find the length of the "keys" field. i am reading the JSON using get_json_object() method. This is t ...
I want to insert simple query into hive table; I create table using following code create table t(id int, f1 String, f2 int); and try to insert inser ...
Running this code, I am trying to export a csv but I get the following error: ParseException line 2:3 cannot recognize input near 'MIN' '(' 'HIG ...