-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsemantic_table_reference.go
More file actions
16 lines (14 loc) · 1013 Bytes
/
semantic_table_reference.go
File metadata and controls
16 lines (14 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package ast
// SemanticTableReference represents SEMANTICKEYPHRASETABLE, SEMANTICSIMILARITYTABLE, or SEMANTICSIMILARITYDETAILSTABLE in a FROM clause
type SemanticTableReference struct {
SemanticFunctionType string `json:"SemanticFunctionType,omitempty"` // SemanticKeyPhraseTable, SemanticSimilarityTable, SemanticSimilarityDetailsTable
TableName *SchemaObjectName `json:"TableName,omitempty"`
Columns []*ColumnReferenceExpression `json:"Columns,omitempty"`
SourceKey ScalarExpression `json:"SourceKey,omitempty"`
MatchedColumn *ColumnReferenceExpression `json:"MatchedColumn,omitempty"`
MatchedKey ScalarExpression `json:"MatchedKey,omitempty"`
Alias *Identifier `json:"Alias,omitempty"`
ForPath bool `json:"ForPath"`
}
func (*SemanticTableReference) node() {}
func (*SemanticTableReference) tableReference() {}