mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 00:39:40 -06:00
Implement sql.Index::CanSupportOrderBy
This commit is contained in:
committed by
Taylor Bantle
parent
99087f14d0
commit
f24a9361e4
@@ -75,6 +75,11 @@ type CommitIndex struct {
|
||||
*doltIndex
|
||||
}
|
||||
|
||||
// CanSupportOrderBy implements the interface sql.Index.
|
||||
func (p *CommitIndex) CanSupportOrderBy(_ sql.Expression) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (p *CommitIndex) CanSupport(ranges ...sql.Range) bool {
|
||||
var selects []string
|
||||
for _, r := range ranges {
|
||||
@@ -612,6 +617,11 @@ func (di *doltIndex) CanSupport(...sql.Range) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// CanSupportOrderBy implements the interface sql.Index.
|
||||
func (di *doltIndex) CanSupportOrderBy(_ sql.Expression) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// ColumnExpressionTypes implements the interface sql.Index.
|
||||
func (di *doltIndex) ColumnExpressionTypes() []sql.ColumnExpressionType {
|
||||
cets := make([]sql.ColumnExpressionType, len(di.columns))
|
||||
|
||||
Reference in New Issue
Block a user