Is it possible to retrieve column names from a table and load them into another table or a text file in hive? Please let me know if we can do this
A bit more succinct version
hive -S -e "SHOW COLUMNS IN database_name.table_name" > column_names.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With