@@ -624,7 +624,9 @@ create external table tpcds100_parquet.customer
624
624
c_email_address string,
625
625
c_last_review_date string
626
626
)
627
- STORED AS PARQUET;
627
+ STORED AS PARQUET
628
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/customer'
629
+ TBLPROPERTIES (" parquet.page.size" = " 4096" ," parquet.block.size" = " 12288" );
628
630
629
631
drop table if exists tpcds100_parquet .customer_address ;
630
632
create external table tpcds100_parquet .customer_address
@@ -643,7 +645,9 @@ create external table tpcds100_parquet.customer_address
643
645
ca_gmt_offset int ,
644
646
ca_location_type string
645
647
)
646
- STORED AS PARQUET;
648
+ STORED AS PARQUET
649
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/customer_address'
650
+ TBLPROPERTIES (" parquet.dictionary.page.size" = " 65536" );
647
651
648
652
drop table if exists tpcds100_parquet .customer_demographics ;
649
653
create external table tpcds100_parquet .customer_demographics
@@ -658,7 +662,9 @@ create external table tpcds100_parquet.customer_demographics
658
662
cd_dep_employed_count int ,
659
663
cd_dep_college_count int
660
664
)
661
- STORED AS PARQUET;
665
+ STORED AS PARQUET
666
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/customer_demographics'
667
+ TBLPROPERTIES (" parquet.enable.dictionary" = " false" , " parquet.compression" = " SNAPPY" , " parquet.page.size" = " 4096" ," parquet.block.size" = " 12288" );
662
668
663
669
drop table if exists tpcds100_parquet .household_demographics ;
664
670
create external table tpcds100_parquet .household_demographics
@@ -669,15 +675,17 @@ create external table tpcds100_parquet.household_demographics
669
675
hd_dep_count int ,
670
676
hd_vehicle_count int
671
677
)
672
- STORED AS PARQUET;
678
+ STORED AS PARQUET
679
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/household_demographics'
680
+ TBLPROPERTIES (" parquet.compression" = " GZIP" );
673
681
674
682
drop table if exists tpcds100_parquet .item ;
675
- create external table tpcds100_parquet .item
683
+ create external table tpcds100_parquet .item
676
684
(
677
685
i_item_sk int ,
678
686
i_item_id string,
679
- i_rec_start_date string ,
680
- i_rec_end_date string ,
687
+ i_rec_start_date date ,
688
+ i_rec_end_date date ,
681
689
i_item_desc string,
682
690
i_current_price double,
683
691
i_wholesale_cost double,
@@ -697,7 +705,8 @@ create external table tpcds100_parquet.item
697
705
i_manager_id int ,
698
706
i_product_name string
699
707
)
700
- STORED AS PARQUET;
708
+ STORED AS PARQUET
709
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/item' ;
701
710
702
711
drop table if exists tpcds100_parquet .promotion ;
703
712
create external table tpcds100_parquet .promotion
@@ -722,7 +731,8 @@ create external table tpcds100_parquet.promotion
722
731
p_purpose string,
723
732
p_discount_active string
724
733
)
725
- STORED AS PARQUET;
734
+ STORED AS PARQUET
735
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/promotion' ;
726
736
727
737
drop table if exists tpcds100_parquet .time_dim ;
728
738
create external table tpcds100_parquet .time_dim (
@@ -737,7 +747,9 @@ create external table tpcds100_parquet.time_dim (
737
747
t_sub_shift string,
738
748
t_meal_time string
739
749
)
740
- STORED AS PARQUET;
750
+ STORED AS PARQUET
751
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/time_dim'
752
+ TBLPROPERTIES (" parquet.enable.dictionary" = " false" , " parquet.compression" = " GZIP" , " parquet.block.size" = " 32768" , " parquet.page.size" = " 1024" );
741
753
742
754
drop table if exists tpcds100_parquet .date_dim ;
743
755
create external table tpcds100_parquet .date_dim (
@@ -770,10 +782,12 @@ create external table tpcds100_parquet.date_dim (
770
782
d_current_quarter string,
771
783
d_current_year string
772
784
)
773
- STORED AS PARQUET;
785
+ STORED AS PARQUET
786
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/date_dim'
787
+ TBLPROPERTIES (" parquet.enable.dictionary" = " false" , " parquet.page.size" = " 134217728" );
774
788
775
789
drop table if exists tpcds100_parquet .store ;
776
- create external table tpcds100_parquet .store (
790
+ create external table tpcds100_parquet .store (
777
791
s_store_sk int ,
778
792
s_store_id string,
779
793
s_rec_start_date string,
@@ -804,10 +818,12 @@ create external table tpcds100_parquet.store (
804
818
s_gmt_offset double,
805
819
s_tax_precentage double
806
820
)
807
- STORED AS PARQUET;
821
+ STORED AS PARQUET
822
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/store'
823
+ TBLPROPERTIES (" parquet.dictionary.page.size" = " 32768" , " parquet.block.size" = " 32768" , " parquet.page.size" = " 32768" );
808
824
809
825
drop table if exists tpcds100_parquet .store_sales ;
810
- create external table tpcds100_parquet .store_sales (
826
+ create external table tpcds100_parquet .store_sales (
811
827
ss_sold_date_sk int ,
812
828
ss_sold_time_sk int ,
813
829
ss_item_sk int ,
@@ -825,17 +841,18 @@ create external table tpcds100_parquet.store_sales (
825
841
ss_ext_discount_amt double,
826
842
ss_ext_sales_price double,
827
843
ss_ext_wholesale_cost double,
828
- ss_ext_list_price double,
844
+ ss_ext_list_price double,
829
845
ss_ext_tax double,
830
846
ss_coupon_amt double,
831
847
ss_net_paid double,
832
848
ss_net_paid_inc_tax double,
833
849
ss_net_profit double
834
850
)
835
- STORED AS PARQUET;
851
+ STORED AS PARQUET
852
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/store_sales' ;
836
853
837
854
drop table if exists tpcds100_parquet .warehouse ;
838
- create external table tpcds100_parquet .warehouse (
855
+ create external table tpcds100_parquet .warehouse (
839
856
w_warehouse_sk int ,
840
857
w_warehouse_id string,
841
858
w_warehouse_name string,
@@ -851,7 +868,8 @@ create external table tpcds100_parquet.warehouse (
851
868
w_country string,
852
869
w_gmt_offset double
853
870
)
854
- STORED AS PARQUET;
871
+ STORED AS PARQUET
872
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/warehouse' ;
855
873
856
874
drop table if exists tpcds100_parquet .ship_mode ;
857
875
create external table tpcds100_parquet .ship_mode (
@@ -862,26 +880,29 @@ create external table tpcds100_parquet.ship_mode (
862
880
sm_carrier string,
863
881
sm_contract string
864
882
)
865
- STORED AS PARQUET;
883
+ STORED AS PARQUET
884
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/ship_mode' ;
866
885
867
886
drop table if exists tpcds100_parquet .reason ;
868
887
create external table tpcds100_parquet .reason (
869
888
r_reason_sk int ,
870
889
r_reason_id string,
871
890
r_reason_desc string
872
891
)
873
- STORED AS PARQUET;
892
+ STORED AS PARQUET
893
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/reason' ;
874
894
875
895
drop table if exists tpcds100_parquet .income_band ;
876
- create external table tpcds100_parquet .income_band (
896
+ create external table tpcds100_parquet .income_band (
877
897
ib_income_band_sk int ,
878
898
ib_lower_bound int ,
879
899
ib_upper_bound int
880
900
)
881
- STORED AS PARQUET;
901
+ STORED AS PARQUET
902
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/income_band' ;
882
903
883
904
drop table if exists tpcds100_parquet .call_center ;
884
- create external table tpcds100_parquet .call_center (
905
+ create external table tpcds100_parquet .call_center (
885
906
cc_call_center_sk int ,
886
907
cc_call_center_id string,
887
908
cc_rec_start_date string,
@@ -914,10 +935,11 @@ create external table tpcds100_parquet.call_center (
914
935
cc_gmt_offset double,
915
936
cc_tax_percentage double
916
937
)
917
- STORED AS PARQUET;
938
+ STORED AS PARQUET
939
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/call_center' ;
918
940
919
941
drop table if exists tpcds100_parquet .web_site ;
920
- create external table tpcds100_parquet .web_site (
942
+ create external table tpcds100_parquet .web_site (
921
943
web_site_sk int ,
922
944
web_site_id string,
923
945
web_rec_start_date string,
@@ -945,10 +967,11 @@ create external table tpcds100_parquet.web_site (
945
967
web_gmt_offset double,
946
968
web_tax_percentage double
947
969
)
948
- STORED AS PARQUET;
970
+ STORED AS PARQUET
971
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/web_site' ;
949
972
950
973
drop table if exists tpcds100_parquet .store_returns ;
951
- create external table tpcds100_parquet .store_returns (
974
+ create external table tpcds100_parquet .store_returns (
952
975
sr_returned_date_sk int ,
953
976
sr_return_time_sk int ,
954
977
sr_item_sk int ,
@@ -970,10 +993,11 @@ create external table tpcds100_parquet.store_returns (
970
993
sr_store_credit double,
971
994
sr_net_loss double
972
995
)
973
- STORED AS PARQUET;
996
+ STORED AS PARQUET
997
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/store_returns' ;
974
998
975
999
drop table if exists tpcds100_parquet .web_page ;
976
- create external table tpcds100_parquet .web_page (
1000
+ create external table tpcds100_parquet .web_page (
977
1001
wp_web_page_sk int ,
978
1002
wp_web_page_id string,
979
1003
wp_rec_start_date string,
@@ -989,7 +1013,8 @@ create external table tpcds100_parquet.web_page (
989
1013
wp_image_count int ,
990
1014
wp_max_ad_count int
991
1015
)
992
- STORED AS PARQUET;
1016
+ STORED AS PARQUET
1017
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/web_page' ;
993
1018
994
1019
drop table if exists tpcds100_parquet .catalog_page ;
995
1020
create external table tpcds100_parquet .catalog_page (
@@ -1003,19 +1028,23 @@ create external table tpcds100_parquet.catalog_page (
1003
1028
cp_description string,
1004
1029
cp_type string
1005
1030
)
1006
- STORED AS PARQUET;
1031
+ STORED AS PARQUET
1032
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/catalog_page'
1033
+ TBLPROPERTIES (" parquet.dictionary.page.size" = " 5242880" , " parquet.page.size" = " 262144" , " parquet.block.size" = " 262144" );
1007
1034
1008
1035
drop table if exists tpcds100_parquet .inventory ;
1009
- create external table tpcds100_parquet .inventory (
1036
+ create external table tpcds100_parquet .inventory (
1010
1037
inv_date_sk int ,
1011
1038
inv_item_sk int ,
1012
1039
inv_warehouse_sk int ,
1013
1040
inv_quantity_on_hand int
1014
1041
)
1015
- STORED AS PARQUET;
1042
+ STORED AS PARQUET
1043
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/inventory'
1044
+ TBLPROPERTIES (" parquet.block.size" = " 10485760" );
1016
1045
1017
1046
drop table if exists tpcds100_parquet .catalog_returns ;
1018
- create external table tpcds100_parquet .catalog_returns (
1047
+ create external table tpcds100_parquet .catalog_returns (
1019
1048
cr_returned_date_sk int ,
1020
1049
cr_returned_time_sk int ,
1021
1050
cr_item_sk int ,
@@ -1044,10 +1073,11 @@ create external table tpcds100_parquet.catalog_returns (
1044
1073
cr_store_credit double,
1045
1074
cr_net_loss double
1046
1075
)
1047
- STORED AS PARQUET;
1076
+ STORED AS PARQUET
1077
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/catalog_returns' ;
1048
1078
1049
1079
drop table if exists tpcds100_parquet .web_returns ;
1050
- create external table tpcds100_parquet .web_returns (
1080
+ create table tpcds100_parquet .web_returns (
1051
1081
wr_returned_date_sk int ,
1052
1082
wr_returned_time_sk int ,
1053
1083
wr_item_sk int ,
@@ -1073,7 +1103,8 @@ create external table tpcds100_parquet.web_returns (
1073
1103
wr_account_credit double,
1074
1104
wr_net_loss double
1075
1105
)
1076
- STORED AS PARQUET;
1106
+ STORED AS PARQUET
1107
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/web_returns' ;
1077
1108
1078
1109
drop table if exists tpcds100_parquet .web_sales ;
1079
1110
create external table tpcds100_parquet .web_sales (
@@ -1112,10 +1143,11 @@ create external table tpcds100_parquet.web_sales (
1112
1143
ws_net_paid_inc_ship_tax double,
1113
1144
ws_net_profit double
1114
1145
)
1115
- STORED AS PARQUET;
1146
+ STORED AS PARQUET
1147
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/web_sales' ;
1116
1148
1117
1149
drop table if exists tpcds100_parquet .catalog_sales ;
1118
- create external table tpcds100_parquet .catalog_sales (
1150
+ create external table tpcds100_parquet .catalog_sales (
1119
1151
cs_sold_date_sk int ,
1120
1152
cs_sold_time_sk int ,
1121
1153
cs_ship_date_sk int ,
@@ -1151,4 +1183,5 @@ create external table tpcds100_parquet.catalog_sales (
1151
1183
cs_net_paid_inc_ship_tax double,
1152
1184
cs_net_profit double
1153
1185
)
1154
- STORED AS PARQUET;
1186
+ STORED AS PARQUET
1187
+ LOCATION ' /drill/testdata/tpcds_sf100/parquet/catalog_sales' ;
0 commit comments