The ORC(Optimized Row Columnar) file format gives a highly efficient way to store data in Hive. It was created to overcome the limitations of the other Hive file formats. Usage of ORC files in Hive increases the performance of reading, writing, and processing data.
LOAD DATA is used to copy the files to hive datafiles. So, in this case, if you are loading the input file /home/user/test_details.txt into an ORC table, it is required to be in ORC format.
A possible workaround is to create a temporary table that is STORED AS TEXT, LOAD DATA into it, and at last copy data to the ORC table.
Example:
Storing as a Text file:
CREATE TABLE test_details_txt( visit_id INT, store_id SMALLINT) STORED AS TEXTFILE;
CREATE TABLE test_details_orc( visit_id INT, store_id SMALLINT) STORED AS ORC;
Load into Text table:
LOAD DATA LOCAL INPATH '/home/user/test_details.txt' INTO TABLE test_details_txt;
Copy to ORC table:
INSERT INTO TABLE test_details_orc SELECT * FROM test_details_txt;
If you want to know more about Hive, then do check out this awesome video tutorial: