tables_standard.json 2.2 KB

12345678910111213141516171819202122232425262728293031
  1. [
  2. {
  3. "data_file": "sample_07.csv",
  4. "create_sql": "CREATE TABLE `sample_07` (\n `code` string ,\n `description` string ,\n `total_emp` int ,\n `salary` int )\nROW FORMAT DELIMITED\n FIELDS TERMINATED BY '\t'\nSTORED AS TextFile\n",
  5. "table_name": "sample_07",
  6. "dialects": ["hive", "impala"]
  7. },
  8. {
  9. "data_file": "sample_08.csv",
  10. "create_sql": "CREATE TABLE `sample_08` (\n `code` string ,\n `description` string ,\n `total_emp` int ,\n `salary` int )\nROW FORMAT DELIMITED\n FIELDS TERMINATED BY '\t'\nSTORED AS TextFile\n",
  11. "table_name": "sample_08",
  12. "dialects": ["hive", "impala"]
  13. },
  14. {
  15. "data_file": "customers.parquet",
  16. "create_sql": "CREATE TABLE `customers` (\n `id` INT,\n `name` STRING,\n `email_preferences` STRUCT<`email_format`:STRING, `frequency`:STRING, `categories`:STRUCT<`promos`:BOOLEAN, `surveys`:BOOLEAN>>,\n `addresses` MAP<STRING, STRUCT<`street_1`:STRING, `street_2`:STRING, `city`:STRING, `state`:STRING, `zip_code`:STRING>>,\n `orders` ARRAY<STRUCT<`order_id`:STRING, `order_date`:STRING, `items`:ARRAY<STRUCT<`product_id`:INT, `sku`:STRING, `name`:STRING, `price`:DOUBLE, `qty`:INT>>>>)\nSTORED AS PARQUET",
  17. "table_name": "customers",
  18. "dialects": ["hive", "impala"]
  19. },
  20. {
  21. "partition_files": {
  22. "`date`='2015-11-18'": "web_logs_1.csv",
  23. "`date`='2015-11-19'": "web_logs_2.csv",
  24. "`date`='2015-11-20'": "web_logs_3.csv",
  25. "`date`='2015-11-21'": "web_logs_4.csv"
  26. },
  27. "create_sql": "CREATE TABLE `web_logs` ( `_version_` bigint, `app` string, `bytes` smallint, `city` string, `client_ip` string, `code` tinyint, `country_code` string, `country_code3` string, `country_name` string, `device_family` string, `extension` string, `latitude` float, `longitude` float, `method` string, `os_family` string, `os_major` string, `protocol` string, `record` string, `referer` string, `region_code` bigint, `request` string, `subapp` string, `time` string, `url` string, `user_agent` string, `user_agent_family` string, `user_agent_major` string, `id` string)\nPARTITIONED BY ( `date` string )\nROW FORMAT DELIMITED \n FIELDS TERMINATED BY ','",
  28. "table_name": "web_logs",
  29. "dialects": ["hive", "impala"]
  30. }
  31. ]