Ich versuche, eine Partitionstabelle NYSE_TBL zu erstellen, und ich bin es Partitionieren basierend auf verwendete Symbole und i die unter AbfragePartition Spalte wird immer auf das Tabellenschema in hive hinzugefügt
create table nyse3
(exchange_data string,
stock_date string,
stock_price_open double,
stock_prce_high double,
stock_prce_low double,
stock_prce_close double,
stock_volume double,
stock_price_adj_close double)
partitioned by (symbol string)
row format delimited
fields terminated by ',';
nach Erstellen der Tabelle, wenn i versucht, das Schema von NYSE3 ich bin immer das unten stehende Schema
describe nyse3;
OK
exchange_data string
stock_date string
stock_price_open double
stock_prce_high double
stock_prce_low double
stock_prce_close double
stock_volume double
stock_price_adj_close double
symbol string
# Partition Information
# col_name data_type comment
symbol string
Time taken: 0.081 seconds, Fetched: 14 row(s)
Meine Frage ist, warum die Trennsäule (SYMBOL) beschrieben wird, in dem Tabellenschema zu beschreiben? Mache ich etwas falsch beim Erstellen des Tisches?