mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 18:12:04 +08:00
590 lines
17 KiB
Go
590 lines
17 KiB
Go
package querybuilder
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"strconv"
|
|
"strings"
|
|
|
|
"github.com/SigNoz/signoz/pkg/errors"
|
|
grammar "github.com/SigNoz/signoz/pkg/parser/grammar"
|
|
"github.com/SigNoz/signoz/pkg/telemetrylogs"
|
|
qbtypes "github.com/SigNoz/signoz/pkg/types/querybuildertypes/querybuildertypesv5"
|
|
"github.com/SigNoz/signoz/pkg/types/telemetrytypes"
|
|
"github.com/antlr4-go/antlr/v4"
|
|
|
|
sqlbuilder "github.com/huandu/go-sqlbuilder"
|
|
)
|
|
|
|
// WhereClauseVisitor implements the FilterQueryVisitor interface
|
|
// to convert the parsed filter expressions into ClickHouse WHERE clause
|
|
type WhereClauseVisitor struct {
|
|
fieldMapper qbtypes.FieldMapper
|
|
conditionBuilder qbtypes.ConditionBuilder
|
|
warnings []error
|
|
fieldKeys map[string][]*telemetrytypes.TelemetryFieldKey
|
|
errors []error
|
|
builder *sqlbuilder.SelectBuilder
|
|
fullTextColumn *telemetrytypes.TelemetryFieldKey
|
|
}
|
|
|
|
// NewWhereClauseVisitor creates a new WhereClauseVisitor
|
|
func NewWhereClauseVisitor(
|
|
conditionBuilder qbtypes.ConditionBuilder,
|
|
fieldKeys map[string][]*telemetrytypes.TelemetryFieldKey,
|
|
builder *sqlbuilder.SelectBuilder,
|
|
fullTextColumn *telemetrytypes.TelemetryFieldKey,
|
|
) *WhereClauseVisitor {
|
|
return &WhereClauseVisitor{
|
|
conditionBuilder: conditionBuilder,
|
|
fieldKeys: fieldKeys,
|
|
builder: builder,
|
|
fullTextColumn: fullTextColumn,
|
|
}
|
|
}
|
|
|
|
type SyntaxError struct {
|
|
line, column int
|
|
msg string
|
|
}
|
|
|
|
func (e *SyntaxError) Error() string {
|
|
return fmt.Sprintf("line %d:%d %s", e.line, e.column, e.msg)
|
|
}
|
|
|
|
// ErrorListener is a custom error listener to capture syntax errors
|
|
type ErrorListener struct {
|
|
*antlr.DefaultErrorListener
|
|
Errors []error
|
|
}
|
|
|
|
// NewErrorListener creates a new error listener
|
|
func NewErrorListener() *ErrorListener {
|
|
return &ErrorListener{
|
|
DefaultErrorListener: antlr.NewDefaultErrorListener(),
|
|
Errors: []error{},
|
|
}
|
|
}
|
|
|
|
// SyntaxError captures syntax errors during parsing
|
|
func (l *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol any, line, column int, msg string, e antlr.RecognitionException) {
|
|
l.Errors = append(l.Errors, &SyntaxError{line: line, column: column, msg: msg})
|
|
}
|
|
|
|
// PrepareWhereClause generates a ClickHouse compatible WHERE clause from the filter query
|
|
func PrepareWhereClause(
|
|
query string,
|
|
fieldKeys map[string][]*telemetrytypes.TelemetryFieldKey,
|
|
conditionBuilder qbtypes.ConditionBuilder,
|
|
fullTextColumn *telemetrytypes.TelemetryFieldKey,
|
|
) (*sqlbuilder.WhereClause, []error, error) {
|
|
// Setup the ANTLR parsing pipeline
|
|
input := antlr.NewInputStream(query)
|
|
lexer := grammar.NewFilterQueryLexer(input)
|
|
|
|
sb := sqlbuilder.NewSelectBuilder()
|
|
|
|
visitor := NewWhereClauseVisitor(conditionBuilder, fieldKeys, sb, fullTextColumn)
|
|
|
|
// Set up error handling
|
|
lexerErrorListener := NewErrorListener()
|
|
lexer.RemoveErrorListeners()
|
|
lexer.AddErrorListener(lexerErrorListener)
|
|
|
|
tokens := antlr.NewCommonTokenStream(lexer, 0)
|
|
parserErrorListener := NewErrorListener()
|
|
parser := grammar.NewFilterQueryParser(tokens)
|
|
parser.RemoveErrorListeners()
|
|
parser.AddErrorListener(parserErrorListener)
|
|
|
|
// Parse the query
|
|
tree := parser.Query()
|
|
|
|
// Handle syntax errors
|
|
if len(parserErrorListener.Errors) > 0 {
|
|
combinedErrors := errors.Newf(
|
|
errors.TypeInvalidInput,
|
|
errors.CodeInvalidInput,
|
|
"found %d syntax errors while parsing the search expression: %v",
|
|
len(parserErrorListener.Errors),
|
|
parserErrorListener.Errors,
|
|
)
|
|
return nil, nil, combinedErrors
|
|
}
|
|
|
|
// Visit the parse tree with our ClickHouse visitor
|
|
cond := visitor.Visit(tree).(string)
|
|
|
|
if len(visitor.errors) > 0 {
|
|
// combine all errors into a single error
|
|
combinedErrors := errors.Newf(
|
|
errors.TypeInvalidInput,
|
|
errors.CodeInvalidInput,
|
|
"found %d errors while parsing the search expression: %v",
|
|
len(visitor.errors),
|
|
visitor.errors,
|
|
)
|
|
return nil, nil, combinedErrors
|
|
}
|
|
|
|
whereClause := sqlbuilder.NewWhereClause().AddWhereExpr(visitor.builder.Args, cond)
|
|
|
|
return whereClause, visitor.warnings, nil
|
|
}
|
|
|
|
// Visit dispatches to the specific visit method based on node type
|
|
func (v *WhereClauseVisitor) Visit(tree antlr.ParseTree) any {
|
|
// Handle nil nodes to prevent panic
|
|
if tree == nil {
|
|
return ""
|
|
}
|
|
|
|
switch t := tree.(type) {
|
|
case *grammar.QueryContext:
|
|
return v.VisitQuery(t)
|
|
case *grammar.ExpressionContext:
|
|
return v.VisitExpression(t)
|
|
case *grammar.OrExpressionContext:
|
|
return v.VisitOrExpression(t)
|
|
case *grammar.AndExpressionContext:
|
|
return v.VisitAndExpression(t)
|
|
case *grammar.UnaryExpressionContext:
|
|
return v.VisitUnaryExpression(t)
|
|
case *grammar.PrimaryContext:
|
|
return v.VisitPrimary(t)
|
|
case *grammar.ComparisonContext:
|
|
return v.VisitComparison(t)
|
|
case *grammar.InClauseContext:
|
|
return v.VisitInClause(t)
|
|
case *grammar.NotInClauseContext:
|
|
return v.VisitNotInClause(t)
|
|
case *grammar.ValueListContext:
|
|
return v.VisitValueList(t)
|
|
case *grammar.FullTextContext:
|
|
return v.VisitFullText(t)
|
|
case *grammar.FunctionCallContext:
|
|
return v.VisitFunctionCall(t)
|
|
case *grammar.FunctionParamListContext:
|
|
return v.VisitFunctionParamList(t)
|
|
case *grammar.FunctionParamContext:
|
|
return v.VisitFunctionParam(t)
|
|
case *grammar.ArrayContext:
|
|
return v.VisitArray(t)
|
|
case *grammar.ValueContext:
|
|
return v.VisitValue(t)
|
|
case *grammar.KeyContext:
|
|
return v.VisitKey(t)
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
|
|
func (v *WhereClauseVisitor) VisitQuery(ctx *grammar.QueryContext) any {
|
|
|
|
return v.Visit(ctx.Expression())
|
|
}
|
|
|
|
// VisitExpression passes through to the orExpression
|
|
func (v *WhereClauseVisitor) VisitExpression(ctx *grammar.ExpressionContext) any {
|
|
return v.Visit(ctx.OrExpression())
|
|
}
|
|
|
|
// VisitOrExpression handles OR expressions
|
|
func (v *WhereClauseVisitor) VisitOrExpression(ctx *grammar.OrExpressionContext) any {
|
|
andExpressions := ctx.AllAndExpression()
|
|
|
|
andExpressionConditions := make([]string, len(andExpressions))
|
|
for i, expr := range andExpressions {
|
|
andExpressionConditions[i] = v.Visit(expr).(string)
|
|
}
|
|
|
|
if len(andExpressionConditions) == 1 {
|
|
return andExpressionConditions[0]
|
|
}
|
|
|
|
return v.builder.Or(andExpressionConditions...)
|
|
}
|
|
|
|
// VisitAndExpression handles AND expressions
|
|
func (v *WhereClauseVisitor) VisitAndExpression(ctx *grammar.AndExpressionContext) any {
|
|
unaryExpressions := ctx.AllUnaryExpression()
|
|
|
|
unaryExpressionConditions := make([]string, len(unaryExpressions))
|
|
for i, expr := range unaryExpressions {
|
|
unaryExpressionConditions[i] = v.Visit(expr).(string)
|
|
}
|
|
|
|
if len(unaryExpressionConditions) == 1 {
|
|
return unaryExpressionConditions[0]
|
|
}
|
|
|
|
return v.builder.And(unaryExpressionConditions...)
|
|
}
|
|
|
|
// VisitUnaryExpression handles NOT expressions
|
|
func (v *WhereClauseVisitor) VisitUnaryExpression(ctx *grammar.UnaryExpressionContext) any {
|
|
result := v.Visit(ctx.Primary()).(string)
|
|
|
|
// Check if this is a NOT expression
|
|
if ctx.NOT() != nil {
|
|
return fmt.Sprintf("NOT (%s)", result)
|
|
}
|
|
|
|
return result
|
|
}
|
|
|
|
// VisitPrimary handles grouped expressions, comparisons, function calls, and full-text search
|
|
func (v *WhereClauseVisitor) VisitPrimary(ctx *grammar.PrimaryContext) any {
|
|
if ctx.OrExpression() != nil {
|
|
// This is a parenthesized expression
|
|
return fmt.Sprintf("(%s)", v.Visit(ctx.OrExpression()).(string))
|
|
} else if ctx.Comparison() != nil {
|
|
return v.Visit(ctx.Comparison())
|
|
} else if ctx.FunctionCall() != nil {
|
|
return v.Visit(ctx.FunctionCall())
|
|
} else if ctx.FullText() != nil {
|
|
return v.Visit(ctx.FullText())
|
|
}
|
|
|
|
// Handle standalone key as a full text search term
|
|
if ctx.GetChildCount() == 1 {
|
|
child := ctx.GetChild(0)
|
|
if keyCtx, ok := child.(*grammar.KeyContext); ok {
|
|
// create a full text search condition on the body field
|
|
keyText := keyCtx.GetText()
|
|
cond, err := v.conditionBuilder.ConditionFor(context.Background(), v.fullTextColumn, qbtypes.FilterOperatorRegexp, keyText, v.builder)
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
return cond
|
|
}
|
|
}
|
|
|
|
return "" // Should not happen with valid input
|
|
}
|
|
|
|
// VisitComparison handles all comparison operators
|
|
func (v *WhereClauseVisitor) VisitComparison(ctx *grammar.ComparisonContext) any {
|
|
keys := v.Visit(ctx.Key()).([]*telemetrytypes.TelemetryFieldKey)
|
|
|
|
// Handle EXISTS specially
|
|
if ctx.EXISTS() != nil {
|
|
op := qbtypes.FilterOperatorExists
|
|
if ctx.NOT() != nil {
|
|
op = qbtypes.FilterOperatorNotExists
|
|
}
|
|
var conds []string
|
|
for _, key := range keys {
|
|
condition, err := v.conditionBuilder.ConditionFor(context.Background(), key, op, nil, v.builder)
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
conds = append(conds, condition)
|
|
}
|
|
return v.builder.Or(conds...)
|
|
}
|
|
|
|
// Handle IN clause
|
|
if ctx.InClause() != nil || ctx.NotInClause() != nil {
|
|
values := v.Visit(ctx.InClause()).([]any)
|
|
op := qbtypes.FilterOperatorIn
|
|
if ctx.NotInClause() != nil {
|
|
op = qbtypes.FilterOperatorNotIn
|
|
}
|
|
var conds []string
|
|
for _, key := range keys {
|
|
condition, err := v.conditionBuilder.ConditionFor(context.Background(), key, op, values, v.builder)
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
conds = append(conds, condition)
|
|
}
|
|
return v.builder.Or(conds...)
|
|
}
|
|
|
|
// Handle BETWEEN
|
|
if ctx.BETWEEN() != nil {
|
|
op := qbtypes.FilterOperatorBetween
|
|
if ctx.NOT() != nil {
|
|
op = qbtypes.FilterOperatorNotBetween
|
|
}
|
|
|
|
values := ctx.AllValue()
|
|
if len(values) != 2 {
|
|
return ""
|
|
}
|
|
|
|
value1 := v.Visit(values[0])
|
|
value2 := v.Visit(values[1])
|
|
|
|
var conds []string
|
|
for _, key := range keys {
|
|
condition, err := v.conditionBuilder.ConditionFor(context.Background(), key, op, []any{value1, value2}, v.builder)
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
conds = append(conds, condition)
|
|
}
|
|
return v.builder.Or(conds...)
|
|
}
|
|
|
|
// Get all values for operations that need them
|
|
values := ctx.AllValue()
|
|
if len(values) > 0 {
|
|
value := v.Visit(values[0])
|
|
|
|
var op qbtypes.FilterOperator
|
|
|
|
// Handle each type of comparison
|
|
if ctx.EQUALS() != nil {
|
|
op = qbtypes.FilterOperatorEqual
|
|
} else if ctx.NOT_EQUALS() != nil || ctx.NEQ() != nil {
|
|
op = qbtypes.FilterOperatorNotEqual
|
|
} else if ctx.LT() != nil {
|
|
op = qbtypes.FilterOperatorLessThan
|
|
} else if ctx.LE() != nil {
|
|
op = qbtypes.FilterOperatorLessThanOrEq
|
|
} else if ctx.GT() != nil {
|
|
op = qbtypes.FilterOperatorGreaterThan
|
|
} else if ctx.GE() != nil {
|
|
op = qbtypes.FilterOperatorGreaterThanOrEq
|
|
} else if ctx.LIKE() != nil {
|
|
op = qbtypes.FilterOperatorLike
|
|
} else if ctx.ILIKE() != nil {
|
|
op = qbtypes.FilterOperatorLike
|
|
} else if ctx.NOT_LIKE() != nil {
|
|
op = qbtypes.FilterOperatorNotLike
|
|
} else if ctx.NOT_ILIKE() != nil {
|
|
op = qbtypes.FilterOperatorNotLike
|
|
} else if ctx.REGEXP() != nil {
|
|
op = qbtypes.FilterOperatorRegexp
|
|
} else if ctx.NOT() != nil && ctx.REGEXP() != nil {
|
|
op = qbtypes.FilterOperatorNotRegexp
|
|
} else if ctx.CONTAINS() != nil {
|
|
op = qbtypes.FilterOperatorContains
|
|
} else if ctx.NOT() != nil && ctx.CONTAINS() != nil {
|
|
op = qbtypes.FilterOperatorNotContains
|
|
}
|
|
|
|
var conds []string
|
|
for _, key := range keys {
|
|
condition, err := v.conditionBuilder.ConditionFor(context.Background(), key, op, value, v.builder)
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
conds = append(conds, condition)
|
|
}
|
|
return v.builder.Or(conds...)
|
|
}
|
|
|
|
return "" // Should not happen with valid input
|
|
}
|
|
|
|
// VisitInClause handles IN expressions
|
|
func (v *WhereClauseVisitor) VisitInClause(ctx *grammar.InClauseContext) any {
|
|
return v.Visit(ctx.ValueList())
|
|
}
|
|
|
|
// VisitNotInClause handles NOT IN expressions
|
|
func (v *WhereClauseVisitor) VisitNotInClause(ctx *grammar.NotInClauseContext) any {
|
|
return v.Visit(ctx.ValueList())
|
|
}
|
|
|
|
// VisitValueList handles comma-separated value lists
|
|
func (v *WhereClauseVisitor) VisitValueList(ctx *grammar.ValueListContext) any {
|
|
values := ctx.AllValue()
|
|
|
|
parts := []any{}
|
|
for _, val := range values {
|
|
parts = append(parts, v.Visit(val))
|
|
}
|
|
|
|
return parts
|
|
}
|
|
|
|
// VisitFullText handles standalone quoted strings for full-text search
|
|
func (v *WhereClauseVisitor) VisitFullText(ctx *grammar.FullTextContext) any {
|
|
// remove quotes from the quotedText
|
|
quotedText := strings.Trim(ctx.QUOTED_TEXT().GetText(), "\"'")
|
|
cond, err := v.conditionBuilder.ConditionFor(context.Background(), v.fullTextColumn, qbtypes.FilterOperatorRegexp, quotedText, v.builder)
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
return cond
|
|
}
|
|
|
|
// VisitFunctionCall handles function calls like has(), hasAny(), etc.
|
|
func (v *WhereClauseVisitor) VisitFunctionCall(ctx *grammar.FunctionCallContext) any {
|
|
// Get function name based on which token is present
|
|
var functionName string
|
|
if ctx.HAS() != nil {
|
|
functionName = "has"
|
|
} else if ctx.HASANY() != nil {
|
|
functionName = "hasAny"
|
|
} else if ctx.HASALL() != nil {
|
|
functionName = "hasAll"
|
|
} else {
|
|
// Default fallback
|
|
v.errors = append(v.errors, errors.Newf(
|
|
errors.TypeInvalidInput,
|
|
errors.CodeInvalidInput,
|
|
"unknown function `%s`",
|
|
ctx.GetText(),
|
|
))
|
|
return ""
|
|
}
|
|
params := v.Visit(ctx.FunctionParamList()).([]any)
|
|
|
|
if len(params) < 2 {
|
|
v.errors = append(v.errors, errors.Newf(
|
|
errors.TypeInvalidInput,
|
|
errors.CodeInvalidInput,
|
|
"function `%s` expects key and value parameters",
|
|
functionName,
|
|
))
|
|
return ""
|
|
}
|
|
|
|
keys, ok := params[0].([]*telemetrytypes.TelemetryFieldKey)
|
|
if !ok {
|
|
v.errors = append(v.errors, errors.Newf(
|
|
errors.TypeInvalidInput,
|
|
errors.CodeInvalidInput,
|
|
"function `%s` expects key parameter to be a field key",
|
|
functionName,
|
|
))
|
|
return ""
|
|
}
|
|
value := params[1:]
|
|
var conds []string
|
|
for _, key := range keys {
|
|
var fieldName string
|
|
|
|
if strings.HasPrefix(key.Name, telemetrylogs.BodyJSONStringSearchPrefix) {
|
|
fieldName, _ = telemetrylogs.GetBodyJSONKey(context.Background(), key, qbtypes.FilterOperatorUnknown, value)
|
|
} else {
|
|
fieldName, _ = v.fieldMapper.FieldFor(context.Background(), key)
|
|
}
|
|
|
|
var cond string
|
|
// Map our functions to ClickHouse equivalents
|
|
switch functionName {
|
|
case "has":
|
|
cond = fmt.Sprintf("has(%s, %s)", fieldName, v.builder.Var(value[0]))
|
|
case "hasAny":
|
|
cond = fmt.Sprintf("hasAny(%s, %s)", fieldName, v.builder.Var(value))
|
|
case "hasAll":
|
|
cond = fmt.Sprintf("hasAll(%s, %s)", fieldName, v.builder.Var(value))
|
|
}
|
|
conds = append(conds, cond)
|
|
}
|
|
|
|
return v.builder.Or(conds...)
|
|
}
|
|
|
|
// VisitFunctionParamList handles the parameter list for function calls
|
|
func (v *WhereClauseVisitor) VisitFunctionParamList(ctx *grammar.FunctionParamListContext) any {
|
|
params := ctx.AllFunctionParam()
|
|
parts := make([]any, len(params))
|
|
|
|
for i, param := range params {
|
|
parts[i] = v.Visit(param)
|
|
}
|
|
|
|
return parts
|
|
}
|
|
|
|
// VisitFunctionParam handles individual parameters in function calls
|
|
func (v *WhereClauseVisitor) VisitFunctionParam(ctx *grammar.FunctionParamContext) any {
|
|
if ctx.Key() != nil {
|
|
return v.Visit(ctx.Key())
|
|
} else if ctx.Value() != nil {
|
|
return v.Visit(ctx.Value())
|
|
} else if ctx.Array() != nil {
|
|
return v.Visit(ctx.Array())
|
|
}
|
|
|
|
return "" // Should not happen with valid input
|
|
}
|
|
|
|
// VisitArray handles array literals
|
|
func (v *WhereClauseVisitor) VisitArray(ctx *grammar.ArrayContext) any {
|
|
return v.Visit(ctx.ValueList())
|
|
}
|
|
|
|
// VisitValue handles literal values: strings, numbers, booleans
|
|
func (v *WhereClauseVisitor) VisitValue(ctx *grammar.ValueContext) any {
|
|
if ctx.QUOTED_TEXT() != nil {
|
|
txt := ctx.QUOTED_TEXT().GetText()
|
|
// trim quotes and return the value
|
|
return strings.Trim(txt, "\"'")
|
|
} else if ctx.NUMBER() != nil {
|
|
number, err := strconv.ParseFloat(ctx.NUMBER().GetText(), 64)
|
|
if err != nil {
|
|
v.errors = append(v.errors, errors.Newf(
|
|
errors.TypeInvalidInput,
|
|
errors.CodeInvalidInput,
|
|
"failed to parse number %s",
|
|
ctx.NUMBER().GetText(),
|
|
))
|
|
return ""
|
|
}
|
|
return number
|
|
} else if ctx.BOOL() != nil {
|
|
// Convert to ClickHouse boolean literal
|
|
boolText := strings.ToLower(ctx.BOOL().GetText())
|
|
return boolText == "true"
|
|
} else if ctx.KEY() != nil {
|
|
// Why do we have a KEY context here?
|
|
// When the user writes an expression like `service.name=redis`
|
|
// The `redis` part is a VALUE context but parsed as a KEY token
|
|
// so we return the text as is
|
|
return ctx.KEY().GetText()
|
|
}
|
|
|
|
return "" // Should not happen with valid input
|
|
}
|
|
|
|
// VisitKey handles field/column references
|
|
func (v *WhereClauseVisitor) VisitKey(ctx *grammar.KeyContext) any {
|
|
|
|
fieldKey := telemetrytypes.GetFieldKeyFromKeyText(ctx.KEY().GetText())
|
|
|
|
keyName := strings.TrimPrefix(fieldKey.Name, telemetrylogs.BodyJSONStringSearchPrefix)
|
|
|
|
fieldKeysForName := v.fieldKeys[keyName]
|
|
|
|
// for the body json search, we need to add search on the body field even
|
|
// if there is a field with the same name as attribute/resource attribute
|
|
// Since it will ORed with the fieldKeysForName, it will not result empty
|
|
// when either of them have values
|
|
if strings.HasPrefix(fieldKey.Name, telemetrylogs.BodyJSONStringSearchPrefix) {
|
|
fieldKeysForName = append(fieldKeysForName, &fieldKey)
|
|
}
|
|
|
|
// TODO(srikanthccv): do we want to return an error here?
|
|
// should we infer the type and auto-magically build a key for expression?
|
|
if len(fieldKeysForName) == 0 {
|
|
v.errors = append(v.errors, errors.Newf(
|
|
errors.TypeInvalidInput,
|
|
errors.CodeInvalidInput,
|
|
"key `%s` not found",
|
|
fieldKey.Name,
|
|
))
|
|
}
|
|
|
|
if len(fieldKeysForName) > 1 {
|
|
// this is warning state, we must have a unambiguous key
|
|
v.warnings = append(v.warnings, errors.Newf(
|
|
errors.TypeInvalidInput,
|
|
errors.CodeInvalidInput,
|
|
"key `%s` is ambiguous, found %d different combinations of field context and data type: %v",
|
|
fieldKey.Name,
|
|
len(fieldKeysForName),
|
|
fieldKeysForName,
|
|
))
|
|
}
|
|
|
|
return fieldKeysForName
|
|
}
|