In quote-preserving mode values capture with their quotes intact

All 34 scenarios hold

The mode used by tools that rewrite tables, such as the formatter, so the original quoting survives a round trip.

expected outcome broken scenario
ScenarioInputCaptured?Captured Type?
Unquotedabcabcjava.lang.String
Single quoted'abc''abc'java.lang.String
Double quoted"abc""abc"java.lang.String
With spacesabc defabc defjava.lang.String
Unquoted is trimmed a b c a b cjava.lang.String
Single quoted is not trimmed' a b c '' a b c 'java.lang.String
Double quoted is not trimmed" a b c "" a b c "java.lang.String
Blank is null
Empty single quoted''''java.lang.String
Empty double quoted""""java.lang.String
Unmatched single quote''java.lang.String
Unmatched double quote""java.lang.String
Single quoted pipe'|''|'java.lang.String
Double quoted pipe"|""|"java.lang.String
Single quoted opening bracket'[''['java.lang.String
Double quoted opening bracket"[""["java.lang.String
Single quoted opening brace'{''{'java.lang.String
Double quoted opening brace"{""{"java.lang.String
Integer11java.lang.String
Decimal3.143.14java.lang.String
Number with underscores1_000_0001_000_000java.lang.String
List with unquoted string[a]
  • a
java.util.List
List with double quoted string["a"]
  • "a"
java.util.List
List with single quoted string['a']
  • 'a'
java.util.List
Set with unquoted string{a}
  • a
java.util.Set
Set with double quoted string{"a"}
  • "a"
java.util.Set
Set with single quoted string{'a'}
  • 'a'
java.util.Set
Map with unquoted string[a: a]
a
a
java.util.Map
Map with double quoted string[a: "a"]
a
"a"
java.util.Map
Map with single quoted string[a: 'a']
a
'a'
java.util.Map
Nested with double quoted strings[double: ["a"]]
double
  • "a"
java.util.Map
Nested with single quoted strings[single: ['a']]
single
  • 'a'
java.util.Map
Map with double quoted key["k": v]
"k"
v
java.util.Map
Map with single quoted key['k': v]
'k'
v
java.util.Map