diff --git a/pkg/ottl/e2e/e2e_test.go b/pkg/ottl/e2e/e2e_test.go index 3ae4d9ae8ad8..a646c04414a3 100644 --- a/pkg/ottl/e2e/e2e_test.go +++ b/pkg/ottl/e2e/e2e_test.go @@ -1124,6 +1124,11 @@ func Test_e2e_ottl_value_expressions(t *testing.T) { statement: `Len(attributes) + Len(attributes)`, want: int64(14), }, + { + name: "Nested converter operations", + statement: `Hex(Len(attributes) + Len(attributes))`, + want: "000000000000000e", + }, } for _, tt := range tests { diff --git a/pkg/ottl/parser_test.go b/pkg/ottl/parser_test.go index 41c1dc651991..e1a3fddfc2fc 100644 --- a/pkg/ottl/parser_test.go +++ b/pkg/ottl/parser_test.go @@ -2148,7 +2148,9 @@ func Test_parseValueExpression_full(t *testing.T) { name: "resolve context value", valueExpression: `attributes`, expected: map[string]any{ - "foo": "bar", + "attributes": map[string]any{ + "foo": "bar", + }, }, tCtx: map[string]any{ "attributes": map[string]any{