Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion module/item_state_filter_tablestore_dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (d *ItemStateFilterTablestoreDao) Filter(user *User, items []*Item, ctx *co
result, err := d.filterParam.EvaluateByDomain(userFeatures, properties)
if err != nil {
log.Error(fmt.Sprintf("requestId=%smodule=ItemStateFilterTablestoreDao\tevent=EvaluateFilterParam\terror=%v", ctx.RecommendId, err))
} else if err == nil && result {
} else if result {
fieldMap[id] = true
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions module/vector_hologres_dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/alibaba/pairec/v2/log"

"github.com/huandu/go-sqlbuilder"
"github.com/alibaba/pairec/v2/persist/holo"
"github.com/alibaba/pairec/v2/recconf"
"github.com/huandu/go-sqlbuilder"
)

type VectorHologresDao struct {
Expand Down Expand Up @@ -138,7 +138,7 @@ func FetchPartition(hologresName, table, field string) string {
}
var partition string

for rows.Next() {
if rows.Next() {
if err := rows.Scan(&partition); err != nil {
log.Error(fmt.Sprintf("module=VectorHologresDao\tevent=FetchPartition\terror=%v", err))
return ""
Expand Down