default LocalDateTime asDateTime(int scale) {
        if (isNullOrEmpty()) {
            return null;
        }

        return ClickHouseValues
                .convertToDateTime(asBigDecimal(ClickHouseChecker.between(scale, ClickHouseValues.PARAM_SCALE, 0, 9)));
    }
Gets value as {@link java.time.LocalDateTime}.

@param scale scale of the date time, between 0 (second) and 9 (nano second)
@return date time, could be null
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseValue.java