An invalid work-order date passes TRY_CAST when encoded as an integer
For a work-order import, I need to reject invalid calendar dates before using them as DATE values. This minimal example uses Apache IoTDB 2.0.10, Table model, with the 2.0.10 CLI. The input contains both a compact YYYYMMDD integer and the corresponding date string. CREATE DATABASE maintenance_calendar; USE maintenance_calendar; CREATE TABLE work_orders(device STRING TAG,day_code INT32 FIELD,day_text STRING FIELD); INSERT INTO work_orders(time,device,day_code,day_text) VALUES (1000,'pump_a',20250228,'2025-02-28'),(2000,'pump_a',20250230,'2025-02-30'),(3000,'pump_a',20240229,'2024-02-29'); The s
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.