From b5867e913193b922c5eaf1c6507a17b141ddf26b Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Mon, 6 Mar 2017 20:17:08 -0800 Subject: [PATCH] (#362) Part 3: implement querying against simple keywords. r=nalexander --- query-algebrizer/src/cc.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/query-algebrizer/src/cc.rs b/query-algebrizer/src/cc.rs index 3240dc3a..c169e70a 100644 --- a/query-algebrizer/src/cc.rs +++ b/query-algebrizer/src/cc.rs @@ -620,7 +620,9 @@ impl ConjoiningClauses { return; } } else { - unimplemented!(); + // It must be a keyword. + self.constrain_column_to_constant(col.clone(), DatomsColumn::Value, TypedValue::Keyword(kw.clone())); + self.wheres.push(ColumnConstraint::HasType(col.clone(), ValueType::Keyword)); }; }, PatternValuePlace::Constant(ref c) => {