tables_transactional.json 1.9 KB

1234567891011121314151617181920212223
  1. [
  2. {
  3. "data_file": "sample_07.csv",
  4. "create_hql": "CREATE TABLE `sample_07` (\n `code` string ,\n `description` string ,\n `total_emp` int ,\n `salary` int )\nSTORED AS parquet\nTBLPROPERTIES ('transactional'='true', 'transactional_properties'='insert_only')\n",
  5. "table_name": "sample_07"
  6. },
  7. {
  8. "data_file": "sample_08.csv",
  9. "create_hql": "CREATE TABLE `sample_08` (\n `code` string ,\n `description` string ,\n `total_emp` int ,\n `salary` int )\nSTORED AS parquet\nTBLPROPERTIES ('transactional'='true', 'transactional_properties'='insert_only')\n",
  10. "table_name": "sample_08"
  11. },
  12. {
  13. "partition_files": {
  14. "`date`='2015-11-18'": "web_logs_1.csv",
  15. "`date`='2015-11-19'": "web_logs_2.csv",
  16. "`date`='2015-11-20'": "web_logs_3.csv",
  17. "`date`='2015-11-21'": "web_logs_4.csv"
  18. },
  19. "create_hql": "CREATE TABLE `web_logs` ( `_version_` bigint, `app` string, `bytes` int, `city` string, `client_ip` string, `code` smallint, `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` string, `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 )\nSTORED AS parquet\nTBLPROPERTIES ('transactional'='true', 'transactional_properties'='insert_only')",
  20. "table_name": "web_logs",
  21. "column_types": ["bigint", "string", "int", "string", "string", "smallint", "string", "string", "string", "string", "string", "float", "float", "string", "string", "string", "string", "string", "string", "string", "string", "string", "string", "string", "string", "string", "string", "string", "string"]
  22. }
  23. ]