Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
29229c2
fix(expressions): validate requests in the service's order and with i…
LeeroyHannigan Oct 31, 2026
aef6e1b
fix(expressions): keep the legacy filter operand-type checks, clarify…
LeeroyHannigan Oct 31, 2026
475465a
fix(expressions): refuse legacy filter operand types with the service…
LeeroyHannigan Oct 31, 2026
90fdc32
fix(expressions): validate legacy conditions with the service's rules…
LeeroyHannigan Oct 31, 2026
68dcd0a
fix(engine): order transaction ConsumedCapacity by table creation time
LeeroyHannigan Oct 31, 2026
217b5f9
fix(storage-mongodb): keep milliseconds on the catalog creation time
LeeroyHannigan Oct 31, 2026
b7ba331
docs: state the transaction capacity tie rule per backend
LeeroyHannigan Oct 31, 2026
ac76c66
refactor(core): split the expression semantic pass by rule family
LeeroyHannigan Oct 31, 2026
964f3c3
refactor(core): move the update-parser tests into their own file
LeeroyHannigan Oct 31, 2026
bf75dc7
style: remove two em dashes from comments this branch added
LeeroyHannigan Oct 31, 2026
af5f681
fix(transact): report four per-item checks where the service does
LeeroyHannigan Oct 31, 2026
d28de7a
fix(query): name the first undefined key condition reference
LeeroyHannigan Oct 31, 2026
52aad21
fix(expressions): answer four checks as the service does
LeeroyHannigan Oct 31, 2026
2c6d37b
docs: correct four comments, pin the sorted unused key list
LeeroyHannigan Oct 31, 2026
d45765d
fix(transact): apply the value nesting limits as the service does
LeeroyHannigan Oct 31, 2026
cbb04f0
fix(scan): report Segment and TotalSegments mismatches after the expr…
LeeroyHannigan Oct 31, 2026
1454cc9
docs: state what the Scan comment, the helpers header and the nesting…
LeeroyHannigan Oct 31, 2026
88d6a9b
fix(query): check legacy conditions against the key schema the way th…
LeeroyHannigan Oct 31, 2026
5d00a4f
fix(query): word an empty legacy number as the service does
LeeroyHannigan Oct 31, 2026
40bafd9
fix(cassandra): pass the bare index name in IndexNotFound so the Quer…
LeeroyHannigan Oct 31, 2026
6f12515
Merge origin/main into fix/transact-validation-order
LeeroyHannigan Nov 5, 2026
5182292
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 5, 2026
5646709
Merge origin/main into fix/transact-validation-order
LeeroyHannigan Nov 9, 2026
e251f94
Merge fix/transact-validation-order into fix/legacy-condition-parity
LeeroyHannigan Nov 12, 2026
29e390e
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 12, 2026
8c710ef
fix(query): word an empty number inside NS, L or M as the service does
LeeroyHannigan Nov 12, 2026
cffbfda
fix(query): refuse empty legacy key values after the Select checks
LeeroyHannigan Nov 12, 2026
6d16ef3
fix(query): check Select ALL_ATTRIBUTES on a GSI after the key checks
LeeroyHannigan Nov 12, 2026
ecb64ee
refactor(query): run the non-indexable refusal once, at request time
LeeroyHannigan Nov 12, 2026
6475f31
test(query): cover B keys in the legacy key condition checks
LeeroyHannigan Nov 12, 2026
218de5e
docs: record which key an empty value on both legacy keys names
LeeroyHannigan Nov 12, 2026
fefb2d5
refactor(query): tidy the legacy key condition comments and tests
LeeroyHannigan Nov 12, 2026
c9b0f35
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 13, 2026
2c98868
refactor(query): reuse the #620 number check for legacy conditions
LeeroyHannigan Nov 13, 2026
7eaf648
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 14, 2026
b29b9c5
fix(expressions): read BETWEEN bound numbers through number_value
LeeroyHannigan Nov 14, 2026
65588f8
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 16, 2026
378f40b
fix(expressions): pass the depth limit to the update section parse
LeeroyHannigan Nov 16, 2026
9025f03
test(expressions): pin the depth limit for calls of any name
LeeroyHannigan Nov 16, 2026
72b5324
fix(expressions): refuse a call by name past the depth limit
LeeroyHannigan Nov 19, 2026
14f1548
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 24, 2026
6256717
test(query): name the missing table number test for what it sends
LeeroyHannigan Nov 24, 2026
12d210d
fix(query): let a legacy number with a Unicode digit reach the table …
LeeroyHannigan Nov 24, 2026
087f851
docs(expressions): name the one call checked past the depth limit
LeeroyHannigan Nov 24, 2026
f037e10
refactor(query): build the non-indexable refusal in one place
LeeroyHannigan Nov 24, 2026
03d2d83
test(query): move the legacy key schema tests into their own file
LeeroyHannigan Nov 24, 2026
e1dbe8a
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 24, 2026
bd08699
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 24, 2026
14f6a63
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 24, 2026
bfbf7e3
fix(engine): allow the PartiQL-only helpers to be unused without partiql
LeeroyHannigan Nov 24, 2026
9671326
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 25, 2026
11e50bc
fix(query): pass a non-ASCII legacy number only for Unicode decimal d…
LeeroyHannigan Nov 25, 2026
0856269
test(query): put U+FF11 inside NS, L and M in the legacy number rows
LeeroyHannigan Nov 25, 2026
599e223
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 25, 2026
bac8de5
test: set creation_date_time in the TableKeyInfo literal of #544's ga…
LeeroyHannigan Nov 25, 2026
2c73421
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan Nov 25, 2026
e1b6f79
test(query): refuse U+00E9 inside NS, L and M in the legacy number rows
LeeroyHannigan Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 56 additions & 6 deletions crates/core/src/expression/depth_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

//! The nesting depth limit of the update and condition parsers: an
//! expression nested past `max_depth` is refused, and one nested far past it
//! is refused on a thread with a small stack instead of overflowing it.
//! is refused on a thread with a small stack instead of overflowing it. The
//! call that crosses the limit is checked by name, and a call refused by name
//! gets the name refusal.

use super::parser::parse_condition_with_depth_limit;
use super::test_timeout::within_10_s;
Expand All @@ -22,6 +24,7 @@ const SMALL_STACK: usize = 1 << 20;

const UPDATE_TOO_DEEP: &str = "Invalid UpdateExpression: expression nesting depth exceeded";
const CONDITION_TOO_DEEP: &str = "Invalid ConditionExpression: expression nesting depth exceeded";
const UPDATE_NO_FOO: &str = "Invalid UpdateExpression: Invalid function name; function: foo";

/// `SET qty = (qty + (qty + ... :v))` with `levels` groups.
fn nested_groups(levels: usize) -> String {
Expand Down Expand Up @@ -73,13 +76,12 @@ fn message(result: Result<(), DynamoDbError>) -> String {
}
}

/// `update` or `condition`.
type Parse = fn(&str) -> Result<(), DynamoDbError>;

/// Run `parse` on `expr` on a thread with [`SMALL_STACK`], failing the test
/// after 10 seconds.
fn on_small_stack(
what: &'static str,
expr: String,
parse: fn(&str) -> Result<(), DynamoDbError>,
) -> Result<(), DynamoDbError> {
fn on_small_stack(what: &'static str, expr: String, parse: Parse) -> Result<(), DynamoDbError> {
within_10_s(what, move || {
std::thread::Builder::new()
.stack_size(SMALL_STACK)
Expand Down Expand Up @@ -163,3 +165,51 @@ fn condition_far_past_the_limit_is_refused_without_overflowing_the_stack() {
CONDITION_TOO_DEEP
);
}

/// When the call that crosses the limit is one the service refuses by name, it
/// answers the name refusal, as the service does at 151, 200 and 300 calls
/// (measured 2026-11-19, two sends each). `size` in a condition, and
/// `if_not_exists` and `list_append` in a SET value, keep the depth error.
#[test]
fn calls_refused_by_name_past_the_limit_answer_the_name_refusal() {
let past = LIMIT + 1;
let rows: [(&'static str, Parse, String, &str); 5] = [
(
"151 foo calls in a condition",
condition,
format!("{}a{} = :v", "foo(".repeat(past), ")".repeat(past)),
"Invalid ConditionExpression: Invalid function name; function: foo",
),
(
"50,000 f calls in a condition",
condition,
format!("{}x{}", "f(".repeat(FAR), ")".repeat(FAR)),
"Invalid ConditionExpression: Invalid function name; function: f",
),
(
"151 foo calls in a SET",
update,
format!("SET a = {}:v{}", "foo(".repeat(past), ")".repeat(past)),
UPDATE_NO_FOO,
),
(
"50,000 foo calls in a SET",
update,
format!("SET qty = {}:v{}", "foo(".repeat(FAR), ")".repeat(FAR)),
UPDATE_NO_FOO,
),
(
"151 size calls in a SET",
update,
format!("SET a = {}:v{}", "size(".repeat(past), ")".repeat(past)),
"Invalid UpdateExpression: The function is not allowed in an update expression; function: size",
),
];
for (what, parse, expr, expected) in rows {
assert_eq!(
message(on_small_stack(what, expr, parse)),
expected,
"{what}"
);
}
}
17 changes: 17 additions & 0 deletions crates/core/src/expression/evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,23 @@ fn placeholder_numeric<'a>(expr: &Expr, maps: &'a ExpressionMaps) -> Option<Pars
}
}

/// Order two values of the same orderable type: `S` and `B` bytewise, `N`
/// numerically. Returns `None` for any other pair (different types, or a type
/// with no order), and for an `N` that is not a number the service can store.
#[must_use]
pub fn compare_orderable(left: &AttributeValue, right: &AttributeValue) -> Option<Ordering> {
match (left, right) {
(AttributeValue::S(l), AttributeValue::S(r)) => Some(l.cmp(r)),
(AttributeValue::B(l), AttributeValue::B(r)) => Some(l.cmp(r)),
(AttributeValue::N(l), AttributeValue::N(r)) => {
let l = number_value(l)?;
let r = number_value(r)?;
Some(l.cmp(&r))
}
_ => None,
}
}

/// One side of a numeric comparison as a decimal: the placeholder's
/// pre-parsed value when there is one, else `n` read with [`number_value`].
/// `None` when the number is not one the service can store.
Expand Down
10 changes: 10 additions & 0 deletions crates/core/src/expression/evaluator_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,16 @@ fn a_number_with_millions_of_digits_is_not_parsed() {
assert!(!eval_within_10_s("n > :v", item, values).unwrap());
}

/// A legacy `BETWEEN` bound with millions of trailing zeros is read through
/// the number check, at its value, and not parsed as written.
#[test]
fn a_bound_with_millions_of_trailing_zeros_compares_at_its_value() {
let long = AttributeValue::N(format!("1.{}", "0".repeat(2_000_000)));
let one = AttributeValue::N("1".to_owned());
let order = within_10_s("a long bound", move || compare_orderable(&long, &one));
assert_eq!(order, Some(Ordering::Equal));
}

/// A placeholder refused when the maps are built stays refused: a filter
/// does not read its text again for each item it compares.
#[test]
Expand Down
11 changes: 9 additions & 2 deletions crates/core/src/expression/key_condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -810,12 +810,19 @@ fn parse_key_clause_inner(tokens: &[Token], pos: &mut usize) -> Result<RawClause
));
}

// begins_with(path, :val)
// begins_with(path, :val). The name is matched as written. Any other
// identifier followed by `(` is refused with the text the service gives
// it, which depends on the name (see `key_condition_function_refusal`).
if let Token::Ident(name) = &tokens[*pos]
&& name.eq_ignore_ascii_case("begins_with")
&& *pos + 1 < tokens.len()
&& tokens[*pos + 1] == Token::LParen
{
if name != "begins_with" {
return Err(validation_err(&format!(
"Invalid KeyConditionExpression: {}",
super::semantics::key_condition_function_refusal(name)
)));
}
*pos += 1; // skip function name
parser_common::expect_token(tokens, pos, &Token::LParen, "(", "KeyConditionExpression")?;
let path = parse_key_operand_path(tokens, pos)?;
Expand Down
15 changes: 10 additions & 5 deletions crates/core/src/expression/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ mod projection;
mod reserved_words;
mod resolver;
mod search_condition;
mod semantics;
#[cfg(test)]
mod test_timeout;
mod tokenizer;
mod update_evaluator;
mod update_parser;

pub use ast::{ArithOp, CompareOp, Expr, PathElement, UpdateAction, removes_only};
pub use evaluator::evaluate_condition;
pub use evaluator::{compare_orderable, evaluate_condition};
pub use key_condition::{
KeyClauseOperand, KeyCondition, SortKeyCondition, key_condition_clause_operands,
parse_key_condition,
Expand All @@ -37,15 +38,19 @@ pub use parser::{parse_condition, parse_condition_with_depth_limit};
pub use projection::{Projection, parse_projection};
pub use reserved_words::validate_no_reserved_words;
pub use resolver::{
ExpressionMaps, collect_key_condition_refs, collect_value_placeholders, resolve_element_name,
resolve_name_ref, resolve_path, validate_begins_with_operands, validate_expression_param_usage,
validate_ordering_operand_types, validate_unused_attributes,
ExpressionMaps, attribute_type_code, collect_key_condition_refs, collect_value_placeholders,
resolve_element_name, resolve_name_ref, resolve_path, validate_begins_with_operands,
validate_expression_param_usage, validate_ordering_operand_types, validate_unused_attributes,
validate_update_paths_disjoint,
};
pub use search_condition::{
MAX_INLINE_FILTER_CONDITIONS, MAX_PARTITION_KEY_CONDITIONS, MAX_SEARCH_CONDITIONS,
SearchCondition, validate_conditions_against_search_schema,
validate_search_condition_expression,
};
pub use semantics::{validate_condition_semantics, validate_update_semantics};
pub use tokenizer::{Token, tokenize, tokenize_for, tokenize_with_limit};
pub use update_evaluator::apply_update_validated;
pub use update_parser::{parse_update, parse_update_from};
pub use update_parser::{
ParsedUpdate, UpdateSection, parse_update, parse_update_from, parse_update_sections,
};
109 changes: 77 additions & 32 deletions crates/core/src/expression/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@
//! function_call → function_name '(' operand ( ',' operand )* ')'
//! ```
//!
//! A parenthesized condition, a `NOT` and a `size` call read as an operand
//! each nest one level, up to `max_depth`.
//! A parenthesized condition, a `NOT` and a function call read as an operand
//! each nest one level, up to `max_depth`. A function call that is the
//! condition itself nests none. Past `max_depth`, the call that crosses the
//! limit is checked by name, as an operand, and a call the semantic pass
//! refuses there gets that refusal instead of the depth error. No other call
//! is checked.

use super::ast::{CompareOp, Expr};
use super::kind::ExpressionKind;
use super::parser_common;
use super::semantics::check_condition_call_name;
use super::tokenizer::Token;
use crate::error::DynamoDbError;

Expand Down Expand Up @@ -136,19 +142,24 @@ fn parse_primary(
return Ok(expr);
}

// Try function call: ident followed by '('
if let Token::Ident(name) = &tokens[*pos] {
let fn_name_lower = name.to_ascii_lowercase();
if is_function_name(&fn_name_lower)
&& *pos + 1 < tokens.len()
&& tokens[*pos + 1] == Token::LParen
{
return parse_function_call(tokens, pos, depth, max_depth);
}
}

// Operand — then check for comparator, BETWEEN, or IN
let left = parse_operand(tokens, pos, depth, max_depth)?;
// Operand (a path, a placeholder, or a function call), then a comparator,
// BETWEEN, or IN. A function call with nothing after it is the condition
// itself. This pass checks grammar only: whether that function may stand
// alone, whether its name exists, and how many operands it takes are
// checked afterwards by `validate_condition_semantics`, over the whole
// parsed tree. Amazon DynamoDB reports every syntax error before any
// semantic error, so `foo(pk) AND` is reported as the syntax error at the
// end, not as the unknown function name that comes first in the text.
// Deferring the semantic checks here gives the same precedence.
//
// `parse_operand` counts a function call as one nesting level. A call
// that is the condition itself is not an operand and nests no level, so
// it is parsed here directly.
let left = if is_condition_call(tokens, *pos) {
parse_function_call(tokens, pos, depth, max_depth)?
} else {
parse_operand(tokens, pos, depth, max_depth)?
};

if *pos < tokens.len() {
if let Some(op) = try_comparator(&tokens[*pos]) {
Expand Down Expand Up @@ -191,6 +202,10 @@ fn parse_primary(
}
}

if matches!(left, Expr::Function { .. }) {
return Ok(left);
}

// Bare operand is not a valid condition on its own
Err(validation_err(
"Invalid ConditionExpression: expected comparison operator or function call",
Expand All @@ -216,13 +231,14 @@ fn parse_operand(
Ok(expr)
}
Token::Ident(name) => {
// size(path) is a function that returns a value, usable as an operand
if name.eq_ignore_ascii_case("size")
&& *pos + 1 < tokens.len()
&& tokens[*pos + 1] == Token::LParen
{
// A function call, `size(path)` or any other name, nests one

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nested call of a name the service does not define now stops at the depth limit before its name is checked. foo( 151 times, then a, then 151 ), then = :v as a Scan FilterExpression: the service answers Invalid FilterExpression: Invalid function name; function: foo (2 sends), as b29b9c5 does. This line answers Invalid FilterExpression: expression nesting depth exceeded on SQLite, PostgreSQL, MongoDB and Cassandra. The same happens in UpdateItem and DeleteItem ConditionExpression at 151, 200 and 300 calls.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed in 72b5324. When a call would go past the limit, the parser now checks its name with the semantic pass's rule first, so this filter answers Invalid FilterExpression: Invalid function name; function: foo again. A size call still gets the depth error, as on main.

I sent your shapes to the service today and got the same answers. depth_tests.rs has them one call past the limit, along with the two 50,000-call nests, which now expect the name refusal. Three nests this check doesn't reach are in #1155, with their measurements.

// level. Its name is checked by `validate_condition_semantics`.
// When this call crosses the limit, that pass never runs, so its
// name is checked here (see `depth_tests.rs`).
if *pos + 1 < tokens.len() && tokens[*pos + 1] == Token::LParen {
*depth += 1;
if *depth > max_depth {
check_condition_call_name(name, true, ExpressionKind::Condition)?;
return Err(validation_err(
"Invalid ConditionExpression: expression nesting depth exceeded",
));
Expand Down Expand Up @@ -251,7 +267,7 @@ fn parse_function_call(
max_depth: usize,
) -> Result<Expr, DynamoDbError> {
let name = match &tokens[*pos] {
Token::Ident(n) => n.to_ascii_lowercase(),
Token::Ident(n) => n.clone(),
_ => {
return Err(validation_err(
"Invalid ConditionExpression: expected function name",
Expand All @@ -262,13 +278,22 @@ fn parse_function_call(

parser_common::expect_token(tokens, pos, &Token::LParen, "(", "ConditionExpression")?;

let mut args = Vec::new();
if *pos < tokens.len() && tokens[*pos] != Token::RParen {
// The grammar requires at least one operand between the parentheses. A
// call with an empty operand list, `foo()` or `attribute_exists()`, is a
// grammar error on the service, reported at the `)` with the text below,
// before the function name or its operand count is looked at (measured
// 2026-10-14 and again 2026-10-23, where `attribute_exists()` and `foo()`
// both answered this text; `begins_with(pk)` with one operand is instead
// the semantic operand-count error from `validate_condition_semantics`).
if *pos < tokens.len() && tokens[*pos] == Token::RParen {
return Err(validation_err(
"Invalid ConditionExpression: Syntax error; token: \")\", near: \"()\"",
));
}
let mut args = vec![parse_operand(tokens, pos, depth, max_depth)?];
while *pos < tokens.len() && tokens[*pos] == Token::Comma {
*pos += 1;
args.push(parse_operand(tokens, pos, depth, max_depth)?);
while *pos < tokens.len() && tokens[*pos] == Token::Comma {
*pos += 1;
args.push(parse_operand(tokens, pos, depth, max_depth)?);
}
}

parser_common::expect_token(tokens, pos, &Token::RParen, ")", "ConditionExpression")?;
Expand All @@ -288,11 +313,31 @@ fn try_comparator(token: &Token) -> Option<CompareOp> {
}
}

fn is_function_name(name: &str) -> bool {
matches!(
name,
"attribute_exists" | "attribute_not_exists" | "attribute_type" | "begins_with" | "contains"
)
/// Whether the tokens at `pos` start a function call with no comparator,
/// `BETWEEN` or `IN` after its closing parenthesis, that is, a call that is
/// the condition itself and not an operand.
fn is_condition_call(tokens: &[Token], pos: usize) -> bool {
if !matches!(tokens.get(pos), Some(Token::Ident(_)))
|| tokens.get(pos + 1) != Some(&Token::LParen)
{
return false;
}
let mut open = 0_usize;
for (i, token) in tokens.iter().enumerate().skip(pos + 1) {
match token {
Token::LParen => open += 1,
Token::RParen => {
open -= 1;
if open == 0 {
return !tokens.get(i + 1).is_some_and(|next| {
try_comparator(next).is_some() || matches!(next, Token::Between | Token::In)
});
}
}
_ => {}
}
}
false
}

fn validation_err(msg: &str) -> DynamoDbError {
Expand Down
15 changes: 12 additions & 3 deletions crates/core/src/expression/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ fn prefix_projection_error(err: DynamoDbError) -> DynamoDbError {

/// A path element after `#name` resolution.
#[derive(PartialEq, Eq)]
enum ResolvedElement {
pub(crate) enum ResolvedElement {
Attr(String),
Index(usize),
}

/// Resolve `#name` references in parsed paths, rejecting index-start paths.
fn resolve_paths(
pub(crate) fn resolve_paths(
paths: &[Vec<PathElement>],
maps: &ExpressionMaps,
) -> Result<Vec<Vec<ResolvedElement>>, DynamoDbError> {
Expand Down Expand Up @@ -166,11 +166,20 @@ fn resolve_paths(
/// Reject paths where one is a prefix of another (DynamoDB's overlap rule),
/// reporting the first offending pair in expression order. Siblings are fine.
fn check_overlap(resolved: &[Vec<ResolvedElement>]) -> Result<(), DynamoDbError> {
check_overlap_for(resolved, super::ExpressionKind::Projection)
}

/// The overlap rule for any expression kind that names document paths; the
/// message carries the kind's `Invalid <Kind>:` prefix.
pub(crate) fn check_overlap_for(
resolved: &[Vec<ResolvedElement>],
kind: super::ExpressionKind,
) -> Result<(), DynamoDbError> {
for i in 0..resolved.len() {
for j in (i + 1)..resolved.len() {
if is_prefix(&resolved[i], &resolved[j]) || is_prefix(&resolved[j], &resolved[i]) {
return Err(DynamoDbError::ValidationException(format!(
"Invalid ProjectionExpression: Two document paths overlap with each other; \
"Invalid {kind}: Two document paths overlap with each other; \
must remove or rewrite one of these paths; path one: {}, path two: {}",
render_path(&resolved[i]),
render_path(&resolved[j]),
Expand Down
Loading
Loading