presto-main/src/main/java/io/prestosql/connector/system/QuerySystemTable.java/QuerySystemTable/toMillis
class QuerySystemTable:    private static Long toMillis(Duration duration)
    {
        if (duration == null) {
            return null;
        }
        return duration.toMillis();
    }