tables.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [
  2. {
  3. "data_file": "employe_sample.csv",
  4. "create_sql": "CREATE TABLE employe_sample (\n code text ,\n description text ,\n total_emp int ,\n salary int )\n",
  5. "insert_sql": "INSERT INTO employe_sample (code, description, total_emp, salary)\nVALUES %(values)s",
  6. "table_name": "employe_sample",
  7. "dialects": ["mysql", "postgresql", "presto"],
  8. "transactional": true
  9. }
  10. ,
  11. {
  12. "data_file": "./tables/us_population.csv",
  13. "create_sql": "CREATE TABLE IF NOT EXISTS us_population (\n state CHAR(2) NOT NULL,\n city VARCHAR NOT NULL,\n population BIGINT\n CONSTRAINT my_pk PRIMARY KEY (state, city)\n)\n",
  14. "insert_sql": "UPSERT INTO us_population VALUES %(values)s",
  15. "table_name": "us_population",
  16. "dialects": ["phoenix"],
  17. "transactional": true,
  18. "is_multi_inserts": true
  19. }
  20. ,
  21. {
  22. "data_file": null,
  23. "create_sql": "CREATE TABLE datagen ( f_sequence INT, f_random INT, f_random_str STRING, ts AS localtimestamp, WATERMARK FOR ts AS ts ) WITH ( 'connector' = 'datagen', 'rows-per-second'='5', 'fields.f_sequence.kind'='sequence', 'fields.f_sequence.start'='1', 'fields.f_sequence.end'='1000', 'fields.f_random.min'='1', 'fields.f_random.max'='1000', 'fields.f_random_str.length'='10' )\n",
  24. "insert_sql": null,
  25. "table_name": "datagen",
  26. "dialects": ["flink"],
  27. "transactional": true
  28. }
  29. ,
  30. {
  31. "data_file": null,
  32. "create_sql": "CREATE STREAM user_behavior (\n user_id BIGINT,\n item_id BIGINT,\n category_id BIGINT,\n behavior STRING,\n ts STRING\n) WITH (kafka_topic='user_behavior', value_format='json', partitions=1)\n",
  33. "insert_sql": null,
  34. "table_name": "user_behavior",
  35. "dialects": ["ksql"],
  36. "transactional": true
  37. }
  38. ]