I have a hive external table with 3 partition columns (A,B,C) and now I want to drop B and C columns from the partition.Is it possible to do so?
I have tried with Alter table tab_name drop column col_name; --- but it throws an error stating…
Initially I create a Hive external table following location
hdfs://user/temp2
and then I altered the location to following.
hdfs://user/temp3
Now even after running MSCK repair table my table is pointing to old location…
Does drop table command in hive also drop partitions?
I just want to know that or we have to use alter table table_name drop partition() command for this?
I have a bunch of parquet files and I'm trying to load them into hive with the following query:
CREATE EXTERNAL TABLE `events` (
// ... fields ...
)
PARTITIONED BY (... partition columns ...)
SORED AS PARQUET
LOCATION…
I am using qubole to run presto queries.
I need to upload a csv file into my query but cannot figure out how to do this.
Does anyone have any experience with this?
For more details, I am under the analyze section.
This is what I have so far…
I want to create a Partitioned Table in Hive. I know to create a table structure first with the help of "Create table ... Partitioned by" command and then insert the data into the table using "Insert Into Table" command
But what I am trying to do is…
Have created a table using:
)
ROW FORMAT SERDE 'com.bizo.hive.serde.csv.CSVSerde'
with serdeproperties(
"field.delim"="|"
)
When I tried to upload a file, that is comma-delimited, it has been uploaded correctly. How is it possible, if I had…
I have one table table1, then I used "create table table2 as select * from table1 where partition_key is not null;" to duplicate it. table1 is only 463.2 GB, but table2 turns out to be 2.8 TB. Why has this happened?
PS: I just displayed the…
Currently, I try to union several tables in hive. After I achieved this, I found that some column type is not proper. I thought some should be float but some kind it becomes string. Then I ran alter command:alter table table_name change column_name…
I have a file with Json data which takes the below form:
Ex:
{
"Name": "xxxx",
"Address": [{
"Street": "aa",
"City": "bbb"
}, {
"Street": "ccc",
"City": "ddd",
"Country": "eee"
}]
}
The…
Are there any internal/performance difference between the below two statements for creating static partitioning in hive, I have tried both ways and both of them are working without any issues after loading the data into partition
dfs -mkdir…
Im new to HIVE and creating my first table!
for some reason all non-string values are showing as NULL (including int, BOOLEAN, etc.)
my data looks like this sample…
I am trying to change the datatype of the non-partition column of the external hive table which is a partitioned table?
For example, I have a partitioned table called trans in which I have 5 columns.
transactions(data type = string ), product(data…