WITH toDateTime64('2019-09-16 19:20:12.3456789102019-09-16 19:20:12.345678910', 0) AS dt64 SELECT dt64; -- { serverError CANNOT_PARSE_TEXT }

SELECT toDateTime64('2011-11-11 11:11:11.1234567890123456789', 0);
SELECT toDateTime64('2011-11-11 11:11:11.-12345678901234567890', 0); -- { serverError CANNOT_PARSE_TEXT }


SELECT toDateTime64('2011-11-11 11:11:11.1', 0);
SELECT toDateTime64('2011-11-11 11:11:11.11', 0);
SELECT toDateTime64('2011-11-11 11:11:11.111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.1111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.11111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.1111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.11111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.1111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.11111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.1111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.11111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.111111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.1111111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.11111111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.111111111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.1111111111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.11111111111111111111', 0);
SELECT toDateTime64('2011-11-11 11:11:11.111111111111111111111', 0);

SELECT toDateTime64('2011-11-11 11:11:11.-1', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-11', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-1111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-11111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-1111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-11111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-1111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-11111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-1111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-11111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-111111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-1111111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-11111111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-111111111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-1111111111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-11111111111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.-111111111111111111111', 0); -- { serverError CANNOT_PARSE_TEXT }

SELECT toDateTime64('2011-11-11 11:11:11.+1', 0); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.++11', 10); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.+111', 3); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.+++1111', 5); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.+11111', 7); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.+++++111111', 2); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.+1111111', 1); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.++++++11111111', 8); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.+111111111', 9); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.+++++++1111111111', 6); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.+11111111111', 4); -- { serverError CANNOT_PARSE_TEXT }
SELECT toDateTime64('2011-11-11 11:11:11.++++++++111111111111', 11);  -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.+1111111111111', 15); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.+++++++++11111111111111', 13); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.+111111111111111', 12); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.++++++++++1111111111111111', 16); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.+11111111111111111', 14); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.+++++++++++111111111111111111', 15); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.+1111111111111111111', 17); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.++++++++++++11111111111111111111', 19); -- { serverError ARGUMENT_OUT_OF_BOUND }
SELECT toDateTime64('2011-11-11 11:11:11.+111111111111111111111', 18); -- { serverError ARGUMENT_OUT_OF_BOUND }
