and it also hates those dollar signs, too
@@ -682,11 +682,11 @@ public class TestAggregation extends TestBase {
assertListEquals(actual, expected);
insert("inventory", parseDocs(
- "{ '_id' : 1, 'item' : 'sweatshirt', '$price': 45.99, qty: 300 }",
- "{ '_id' : 2, 'item' : 'winter coat', '$price': 499.99, qty: 200 }",
- "{ '_id' : 3, 'item' : 'sun dress', '$price': 199.99, qty: 250 }",
- "{ '_id' : 4, 'item' : 'leather boots', '$price': 249.99, qty: 300 }",
- "{ '_id' : 5, 'item' : 'bow tie', '$price': 9.99, qty: 180 }"));
+ "{ '_id' : 1, 'item' : 'sweatshirt', 'literal_price': 45.99, qty: 300 }",
+ "{ '_id' : 2, 'item' : 'winter coat', 'literal_price': 499.99, qty: 200 }",
+ "{ '_id' : 3, 'item' : 'sun dress', 'literal_price': 199.99, qty: 250 }",
+ "{ '_id' : 4, 'item' : 'leather boots', 'literal_price': 249.99, qty: 300 }",
+ "{ '_id' : 5, 'item' : 'bow tie', 'literal_price': 9.99, qty: 180 }"));
actual = getDs().aggregate("inventory")
.match(expr(gt(getField(literal("literal_price")), value(200))))
