selects_split.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. [
  2. {
  3. "QueryType": "table_drop",
  4. "Database": "database_1",
  5. "Datatable": "table_test"
  6. },
  7. {
  8. "QueryType": "table_create",
  9. "Database": "database_1",
  10. "Datatable": "table_test",
  11. "Definition": {
  12. "table_type": "index_data",
  13. "split_column": "data_time",
  14. "Columns": [
  15. {
  16. "Name": "sign",
  17. "Type": "String"
  18. },
  19. {
  20. "Name": "data_time",
  21. "Type": "String"
  22. },
  23. {
  24. "Name": "value",
  25. "Type": "Double"
  26. }
  27. ],
  28. "Key": [
  29. "sign",
  30. "data_time"
  31. ],
  32. "Indexes": [
  33. {
  34. "Name": "index_1",
  35. "Columns": [
  36. "data_time"
  37. ]
  38. }
  39. ]
  40. }
  41. },
  42. {
  43. "QueryType": "batch_insert",
  44. "Database": "database_1",
  45. "Datatable": "table_test",
  46. "InsertObjects": [
  47. {
  48. "sign": "1",
  49. "data_time": "20080101000000",
  50. "value": 1.0
  51. },
  52. {
  53. "sign": "1",
  54. "data_time": "20080102000000",
  55. "value": 1.0
  56. },
  57. {
  58. "sign": "1",
  59. "data_time": "20080201000000",
  60. "value": 1.0
  61. },
  62. {
  63. "sign": "1",
  64. "data_time": "20080202000000",
  65. "value": 1.0
  66. },
  67. {
  68. "sign": "2",
  69. "data_time": "20080101000000",
  70. "value": 1.0
  71. },
  72. {
  73. "sign": "2",
  74. "data_time": "20080102000000",
  75. "value": 1.0
  76. },
  77. {
  78. "sign": "2",
  79. "data_time": "20080201000000",
  80. "value": 1.0
  81. },
  82. {
  83. "sign": "2",
  84. "data_time": "20080202000000",
  85. "value": 1.0
  86. }
  87. ]
  88. },
  89. {
  90. "QueryType": "index_drop",
  91. "Database": "database_1",
  92. "Datatable": "table_test",
  93. "Name": "index_1"
  94. },
  95. {
  96. "QueryType": "index_create",
  97. "Database": "database_1",
  98. "Datatable": "table_test",
  99. "Name": "index_1",
  100. "Columns": [
  101. "data_time"
  102. ]
  103. }
  104. ]