Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chrislusf/gleam
/ functions
Functions
3,091 in github.com/chrislusf/gleam
⨍
Functions
3,091
◇
Types & classes
751
↓ 1 callers
Function
encodeShardInfo
(shardInfo *KafkaPartitionInfo)
plugins/kafka/kafka_partition_info.go:101
↓ 1 callers
Function
encodeShardInfo
(shardInfo *CassandraShardInfo)
plugins/cassandra/cassandra_shard_info.go:110
↓ 1 callers
Function
estimateJoinCount
(lc uint64, rc uint64)
sql/plan/match_property.go:179
↓ 1 callers
Method
eval
eval does evaluation by the given row.
sql/expression/builtin.go:89
↓ 1 callers
Method
executeCommand
( stream pb.GleamAgent_ExecuteServer, startRequest *pb.ExecutionRequest, dir string, statChan chan *pb.Exe
distributed/agent/agent_server_execute.go:17
↓ 1 callers
Method
executeInstruction
(ctx context.Context, wg *sync.WaitGroup, ioErrChan, exeErrChan chan error, inChan, outChan *util.Piper, pre
distributed/executor/executor.go:172
↓ 1 callers
Function
existsCartesianProduct
(p LogicalPlan)
sql/plan/optimizer.go:77
↓ 1 callers
Function
exprHasSetVar
exprHasSetVar checks if the expression has set-var function. If do, we should not prune it.
sql/plan/column_pruning.go:35
↓ 1 callers
Method
externalSort
Perform external file sort.
sql/util/filesort/filesort.go:446
↓ 1 callers
Method
extractAggFuncs
(fields []*ast.SelectField)
sql/plan/logical_plan_builder.go:691
↓ 1 callers
Method
extractCorColumnsBySchema
extractCorColumnsBySchema only extracts the correlated columns that match the outer plan's schema. e.g. If the correlated columns from inner plan are
sql/plan/decorrelate.go:24
↓ 1 callers
Function
extractDayHour
Format is `DD HH`.
sql/util/types/time.go:1532
↓ 1 callers
Function
extractDayMicrosecond
Format is `DD HH:MM:SS.FFFFFF`.
sql/util/types/time.go:1472
↓ 1 callers
Function
extractDayMinute
Format is `DD HH:MM`.
sql/util/types/time.go:1512
↓ 1 callers
Function
extractDaySecond
Format is `DD HH:MM:SS`.
sql/util/types/time.go:1492
↓ 1 callers
Function
extractMinuteMicrosecond
Format is `MM:SS.FFFFFF`.
sql/util/types/time.go:1362
↓ 1 callers
Function
extractMinuteSecond
Format is `MM:SS`.
sql/util/types/time.go:1382
↓ 1 callers
Function
extractSingleTimeValue
(unit string, format string)
sql/util/types/time.go:1310
↓ 1 callers
Function
extractYearMonth
Format is `YYYY-MM`.
sql/util/types/time.go:1552
↓ 1 callers
Function
fastReverseBytes
(b []byte)
sql/util/codec/bytes.go:163
↓ 1 callers
Method
fetchPartitionIds
()
plugins/kafka/kafka_source.go:38
↓ 1 callers
Method
fillShowFields
(s *ast.ShowStmt)
sql/resolver/resolver.go:841
↓ 1 callers
Method
findServers
(dc *DataCenter, requests []*pb.ComputeResource)
distributed/master/resource_assign.go:77
↓ 1 callers
Function
floatStrToIntStr
floatStrToIntStr converts a valid float string into valid integer string which can be parsed by strconv.ParseInt, we can't parse float first then conv
sql/util/types/convert.go:174
↓ 1 callers
Method
funcCall
(x *FuncCallExpr)
sql/ast/flag.go:142
↓ 1 callers
Method
funcCallToExpression
(v *ast.FuncCallExpr)
sql/plan/expression_rewriter.go:951
↓ 1 callers
Method
genShardInfos
(f *flow.Flow, partitionIds []int32)
plugins/kafka/kafka_source.go:59
↓ 1 callers
Method
genShardInfos
(f *flow.Flow)
plugins/file/file_source.go:91
↓ 1 callers
Method
genShardInfos
(f *flow.Flow)
plugins/cassandra/cassandra_source.go:38
↓ 1 callers
Method
getAggFuncChildIdx
getAggFuncChildIdx gets which children it belongs to, 0 stands for left, 1 stands for right, -1 stands for both.
sql/plan/aggregation_push_down.go:52
↓ 1 callers
Method
getCtx
getCtx returns this function's context.
sql/expression/builtin.go:99
↓ 1 callers
Method
getDefaultValue
(col *table.Column)
sql/plan/planbuilder.go:269
↓ 1 callers
Method
getDefaultValues
(agg *Aggregation)
sql/plan/aggregation_push_down.go:227
↓ 1 callers
Function
getEQFunctionOffset
getEQFunctionOffset judge if the expression is a eq function like A = 1 where a is an index. If so, it will return the offset of A in index columns. e
sql/plan/refiner.go:32
↓ 1 callers
Function
getFormatToken
getFormatToken takes one format control token from the string. format "%d %H %m" will get token "%d" and the remain is " %H %m".
sql/util/types/time.go:1874
↓ 1 callers
Method
getFunction
getFunction gets a function signature by the types and the counts of given arguments.
sql/expression/builtin.go:120
↓ 1 callers
Function
getInnerFromParentheses
(expr ast.ExprNode)
sql/resolver/resolver.go:693
↓ 1 callers
Function
getLastStepId
(status *pb.FlowExecutionStatus, stepGroup *pb.FlowExecutionStatus_StepGroup)
distributed/master/ui/svg_writer.go:162
↓ 1 callers
Function
getMaxColLen
(cols []string, datas [][]string)
sql/util/printer/printer.go:59
↓ 1 callers
Function
getMaxFloat
(flen int, decimal int)
sql/util/types/helper.go:49
↓ 1 callers
Method
getMySQLErrorCode
()
sql/terror/terror.go:271
↓ 1 callers
Function
getPrintCol
(cols []string, maxColLen []int)
sql/util/printer/printer.go:87
↓ 1 callers
Function
getPrintRow
(data []string, maxColLen []int)
sql/util/printer/printer.go:100
↓ 1 callers
Function
getPrintRows
(datas [][]string, maxColLen []int)
sql/util/printer/printer.go:113
↓ 1 callers
Function
getResources
(master string, request *pb.ComputeRequest)
distributed/driver/scheduler/grpc_client_to_master.go:13
↓ 1 callers
Function
getReverseOrderBy
(a []instruction.OrderBy)
flow/dataset_sort.go:94
↓ 1 callers
Function
getStatsChan
(flowHashCode uint32, stepId int32, taskId int32)
distributed/agent/agent_grpc_stats.go:15
↓ 1 callers
Function
getSystemTimestamp
(ctx context.Context)
sql/expression/helper.go:137
↓ 1 callers
Function
getTimeValue
(ctx context.Context, v interface{}, tp byte, fsp int)
sql/expression/helper.go:57
↓ 1 callers
Function
getTimeZone
(ctx context.Context)
sql/expression/builtin_time.go:1594
↓ 1 callers
Method
getUniqueFileName
()
sql/util/filesort/filesort.go:226
↓ 1 callers
Function
getValidPrefix
getValidPrefix gets a prefix of string which can parsed to a number with base. the minimun base is 2 and the maximum is 36.
sql/expression/util.go:113
↓ 1 callers
Function
gleamSortDistributed
(fileName string, size int64, partition int, isDistributed, isInMemory bool)
examples/sort_benchmark/sort_benchmark.go:66
↓ 1 callers
Function
grpcDial
(address string, opts ...grpc.DialOption)
util/grpc_util.go:13
↓ 1 callers
Method
handleCaseExpr
The return type of a CASE expression is the compatible aggregated type of all return values, but also depends on the context in which it is used. If u
sql/plan/typeinferer.go:371
↓ 1 callers
Method
handleColumnName
handleColumnName looks up and sets ResultField for the column name.
sql/resolver/resolver.go:455
↓ 1 callers
Method
handleCommandConnection
(conn net.Conn, command *pb.ControlMessage)
distributed/agent/agent_server.go:143
↓ 1 callers
Method
handleCompareSubquery
(v *ast.CompareSubqueryExpr)
sql/plan/expression_rewriter.go:205
↓ 1 callers
Method
handleEQAll
handleEQAll handles the case of = all. For example, if the query is t.id = all (select s.id from s), it will be rewrote to t.id = (select s.id from s
sql/plan/expression_rewriter.go:408
↓ 1 callers
Function
handleEscape
handleEscape handles the case in scanString when previous char is '\'.
sql/parser/lexer.go:450
↓ 1 callers
Method
handleExistSubquery
(v *ast.ExistsSubqueryExpr)
sql/plan/expression_rewriter.go:437
↓ 1 callers
Method
handleFieldList
handleFieldList expands wild card field and sets fieldList in current context.
sql/resolver/resolver.go:685
↓ 1 callers
Method
handleFuncCallExpr
(x *ast.FuncCallExpr)
sql/plan/typeinferer.go:254
↓ 1 callers
Function
handleIdent
(lval *yySymType)
sql/parser/misc.go:518
↓ 1 callers
Method
handleInMemoryReadConnection
(conn net.Conn, readerName, channelName string)
distributed/agent/agent_server_read_in_memory.go:12
↓ 1 callers
Method
handleJoin
handleJoin sets result fields for join.
sql/resolver/resolver.go:440
↓ 1 callers
Method
handleLikeExpr
like expression expects the target expression and pattern to be a string, if it's not, we add a cast function.
sql/plan/typeinferer.go:406
↓ 1 callers
Method
handleLocalInMemoryWriteConnection
(r io.Reader, writerName, channelName string, readerCount int)
distributed/agent/agent_server_write_in_memory.go:11
↓ 1 callers
Method
handleLocalWriteConnection
(reader io.Reader, writerName, channelName string, readerCount int)
distributed/agent/agent_server_write.go:10
↓ 1 callers
Method
handleNEAny
handleNEAny handles the case of != any. For exmaple, if the query is t.id != any (select s.id from s), it will be rewrote to t.id != s.id or count(dis
sql/plan/expression_rewriter.go:377
↓ 1 callers
Method
handleOtherComparableSubq
handleOtherComparableSubq handles the queries like < any, < max, etc. For example, if the query is t.id < any (select s.id from s), it will be rewrote
sql/plan/expression_rewriter.go:285
↓ 1 callers
Method
handlePosition
(pos *ast.PositionExpr)
sql/resolver/resolver.go:801
↓ 1 callers
Method
handleReadConnection
(conn net.Conn, readerName, channelName string)
distributed/agent/agent_server_read.go:13
↓ 1 callers
Method
handleRegexpExpr
regexp expression expects the target expression and pattern to be a string, if it's not, we add a cast function.
sql/plan/typeinferer.go:415
↓ 1 callers
Method
handleRequest
(conn net.Conn)
distributed/agent/agent_server.go:127
↓ 1 callers
Method
handleScalarSubquery
(v *ast.SubqueryExpr)
sql/plan/expression_rewriter.go:525
↓ 1 callers
Method
handleTableName
handleTableName looks up and sets the schema information and result fields for table name.
sql/resolver/resolver.go:334
↓ 1 callers
Method
handleTableSource
handleTableSources checks name duplication and puts the table source in current resolverContext. Note: "select * from t as a join (select 1) as a;" is
sql/resolver/resolver.go:394
↓ 1 callers
Method
handleUnionSelectList
(u *ast.UnionSelectList)
sql/resolver/resolver.go:824
↓ 1 callers
Method
handleValueExpr
(x *ast.ValueExpr)
sql/plan/typeinferer.go:235
↓ 1 callers
Method
handleValuesExpr
(x *ast.ValuesExpr)
sql/plan/typeinferer.go:239
↓ 1 callers
Function
hashByKey
(data interface{})
util/key.go:17
↓ 1 callers
Function
hashjoin
()
examples/join/join.go:54
↓ 1 callers
Method
heartbeat
()
distributed/agent/agent_grpc_client_to_master.go:15
↓ 1 callers
Method
inToExpression
(v *ast.PatternInExpr)
sql/plan/expression_rewriter.go:801
↓ 1 callers
Method
init
(l int)
sql/expression/constant_propagation.go:44
↓ 1 callers
Method
init
()
distributed/store/single_file_store.go:24
↓ 1 callers
Function
injectImport
(src string)
sql/parser/goyacc/main.go:787
↓ 1 callers
Method
insertCol
(col *Column)
sql/expression/constant_propagation.go:245
↓ 1 callers
Function
intArrayEquals
(a []int, b []int)
flow/dataset_partition.go:58
↓ 1 callers
Method
internalSort
Perform full in-memory sort.
sql/util/filesort/filesort.go:429
↓ 1 callers
Method
intersection
(a, b []rangePoint)
sql/plan/range.go:404
↓ 1 callers
Function
isCastType
(tp byte)
sql/util/types/convert.go:128
↓ 1 callers
Function
isConstraintKeyTp
(constraints []*ast.Constraint, colDef *ast.ColumnDef)
sql/plan/validator.go:134
↓ 1 callers
Method
isDecomposable
isDecomposable checks if an aggregate function is decomposable. An aggregation function $F$ is decomposable if there exist aggregation functions F_1 a
sql/plan/aggregation_push_down.go:37
↓ 1 callers
Method
isDeterministic
isDeterministic will be true by default. Non-deterministic function will override this function.
sql/expression/builtin.go:56
↓ 1 callers
Method
isDeterministic
isDeterministic checks if a function is deterministic. A function is deterministic if it returns same results for same inputs. e.g. random is non-dete
sql/expression/builtin.go:95
↓ 1 callers
Function
isIdentChar
(ch rune)
sql/parser/misc.go:32
↓ 1 callers
Function
isIdentFirstChar
(ch rune)
sql/parser/misc.go:40
↓ 1 callers
Function
isInputOnDisk
(task *flow.Task)
distributed/driver/scheduler/scheduler_dataset_shard.go:42
← previous
next →
1,301–1,400 of 3,091, ranked by callers