From b4f003d7be1e87db1606b66b04e91c4887fb1961 Mon Sep 17 00:00:00 2001 From: Andy Arthur Date: Fri, 4 Mar 2022 13:42:51 -0800 Subject: [PATCH] updated DoltIndex to satisfy sql.FilteredIndex interface --- go/libraries/doltcore/sqle/index/dolt_index.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/go/libraries/doltcore/sqle/index/dolt_index.go b/go/libraries/doltcore/sqle/index/dolt_index.go index 45d74bf91c..66122d5167 100644 --- a/go/libraries/doltcore/sqle/index/dolt_index.go +++ b/go/libraries/doltcore/sqle/index/dolt_index.go @@ -31,7 +31,7 @@ import ( ) type DoltIndex interface { - sql.Index + sql.FilteredIndex Schema() schema.Schema IndexSchema() schema.Schema TableData() durable.Index @@ -289,6 +289,10 @@ RangeLoop: }, nil } +func (di doltIndex) HandledFilters(filters []sql.Expression) []sql.Expression { + return filters +} + // Database implement sql.Index func (di doltIndex) Database() string { return di.dbName