MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / as_of_valid_time_integer

Function as_of_valid_time_integer

nodedb-sql/src/parser/preprocess/temporal.rs:501–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

499
500 #[test]
501 fn as_of_valid_time_integer() {
502 let ex = extract("SELECT * FROM array_slice('g', '{}') AS OF VALID TIME 1700000000001")
503 .unwrap()
504 .unwrap();
505 assert_eq!(ex.temporal.valid_time, ValidTime::At(1_700_000_000_001));
506 assert!(!ex.sql.to_uppercase().contains("AS OF VALID TIME"));
507 }
508
509 #[test]
510 fn as_of_system_time_iso8601() {

Callers

nothing calls this directly

Calls 1

extractFunction · 0.85

Tested by

no test coverage detected