First time here? Checkout the FAQ!
x
0 votes
707 views
asked in Cloud Computing by (140 points)  
edited by
When I am using the select statement to display my data in hive. It displays my data in scattered format. I want to add a delimiter so that when data is been displayed it should be in proper table format.
  
commented by (115k points)  
Your question is vague. Clarify it with an example.
commented by (480 points)  
Even when I'm also selecting any query, I'm also getting data in below scattered format not in proper table format.

Is it what your're asking for?

audi    v8      1092371.4167
mitsubishi      lancer  802800.5560
mazda           392644.0280
lamborghini             368726.7639
ford    escort  348085.0830
citroen xm      342516.2405
lamborghini     aventador       320291.0645
honda           280090.3007
bmw     z8      223893.0000
fiat    brava   178872.4219
commented by (140 points)  
edited by
I have added more details to my question. Here, is the link to my screenshot: https://paste.pics/eaf6061ca22258c92491b419694c78a6
commented by (115k points)  
It seems you did not define the right delimiter. You should take a look at some of your data rows to choose the right delimiter. For example, you need to add this to "create table" command if the fields are separated by a semicolon:

ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\;'
commented by (140 points)  
I did try this but it is not working for me.

Please log in or register to answer this question.

Related questions

+1 vote
1 answer 1.8k views
0 votes
1 answer 550 views
...