All these four cql expressions result in the same parse tree when sent to new CQLParser().parse(cql).toXCQL():
foo bar
"foo bar"
cql.serverChoice=foo bar
cql.serverChoice="foo bar"
When sending these other four cql expressions only the two quoted work, the two unquoted result in CQLParseException: expected index or term, got EOF:
foo bar.baz
"foo bar.baz"
cql.serverChoice=foo bar.baz
cql.serverChoice="foo bar.baz"
This is inconsistent. Either accept all unquoted or no unquoted expressions.