Datasets:
Download tasks/offline-compute/PrestoSQL/prestosql_004/init/init_db.sql from dicemy/DataClawEval: direct link, hf CLI and curl.
- Browser
- Download file 2.27 kB
-
https://huggingface.co/datasets/dicemy/DataClawEval/resolve/main/tasks/offline-compute/PrestoSQL/prestosql_004/init/init_db.sql
- Command line
-
hf download hf://datasets/dicemy/DataClawEval/tasks/offline-compute/PrestoSQL/prestosql_004/init/init_db.sql
-
curl -L -o init_db.sql https://huggingface.co/datasets/dicemy/DataClawEval/resolve/main/tasks/offline-compute/PrestoSQL/prestosql_004/init/init_db.sql
2.27 kB
| CREATE DATABASE IF NOT EXISTS internal_platform_db; | |
| -- Input table | |
| CREATE TABLE IF NOT EXISTS internal_platform_db.t_oh_novel_uds_algorithm_book_rel_prestosql_004 ( | |
| ftime STRING, | |
| event_code STRING, | |
| book_id STRING, | |
| guid STRING, | |
| reqid STRING, | |
| traceid STRING, | |
| report_time STRING, | |
| ds BIGINT | |
| ) STORED AS ORC; | |
| INSERT INTO TABLE internal_platform_db.t_oh_novel_uds_algorithm_book_rel_prestosql_004 VALUES | |
| ('2026060906', 'expose', '1234567890', 'guid001', 'req001', 'trace001abc', '2026-06-09 06:00:00', 2026060906), | |
| ('2026060906', 'click', '1234567890', 'guid002', 'req002', 'trace002def', '2026-06-09 06:01:00', 2026060906), | |
| ('2026060906', 'real_read', '2345678901', 'guid003', 'req003', 'trace003ghi', '2026-06-09 06:02:00', 2026060906), | |
| ('2026060906', 'add_0', '3456789012', 'guid004', 'req004', 'trace004jkl', '2026-06-09 06:03:00', 2026060906), | |
| ('2026060906', 'add_1', '4567890123', 'guid005', 'req005', 'trace005mno', '2026-06-09 06:04:00', 2026060906), | |
| ('2026060906', 'shelf_add', '5678901234', 'guid006', 'req006', 'trace006pqr', '2026-06-09 06:05:00', 2026060906), | |
| ('2026060906', 'share', '6789012345', 'guid007', 'req007', 'trace007stu', '2026-06-09 06:06:00', 2026060906), | |
| ('2026060906', 'comment', '7890123456', 'guid008', 'req008', 'trace008vwx', '2026-06-09 06:07:00', 2026060906), | |
| ('2026060906', 'like', '8901234567', 'guid009', 'req009', 'trace009yza', '2026-06-09 06:08:00', 2026060906), | |
| ('2026060906', 'expose', 'shortid', 'guid010', 'req010', 'trace010bcd', '2026-06-09 06:09:00', 2026060906), | |
| ('2026060906', 'invalid_event', '1234567890', 'guid011', 'req011', 'trace011efg', '2026-06-09 06:10:00', 2026060906), | |
| ('2026060906', 'click', '1234567890', 'guid012', 'req012', 'trace012hij', '2026-06-09 06:11:00', 2026060806); | |
| -- GT output table | |
| CREATE TABLE IF NOT EXISTS internal_platform_db.t_od_novel_user_action_detail_prestosql_004 ( | |
| reqid STRING, | |
| guid STRING, | |
| bookid STRING, | |
| traceid STRING, | |
| action STRING, | |
| ftime STRING, | |
| report_time STRING | |
| ) STORED AS ORC; | |
| -- Candidate output table | |
| CREATE TABLE IF NOT EXISTS internal_platform_db.t_od_novel_user_action_detail_cand_prestosql_004 ( | |
| reqid STRING, | |
| guid STRING, | |
| bookid STRING, | |
| traceid STRING, | |
| action STRING, | |
| ftime STRING, | |
| report_time STRING | |
| ) STORED AS ORC; | |