Skip to content
Merged
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: 2 additions & 0 deletions sql/codegen/feature_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ package codegen
type NumericColumn struct {
FieldMeta *FieldMeta
}

func (NumericColumn) isFeatureColumn() {}
4 changes: 3 additions & 1 deletion sql/codegen/intermediate_representation.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ type FieldMeta struct {

// FeatureColumn indicates the feature column to be applied on the field. Please refer to
// github.com/sql-machine-learning/sqlflow/sql/codegen/feature_column.go for detailed list of all feature columns.
type FeatureColumn interface{}
type FeatureColumn interface {
isFeatureColumn()
}

// Attribute represents an parsed entry in the WITH clause.
type Attribute struct {
Expand Down