_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c28500
train
// create a channel to aggregate values of the same key // automatically close original sorted channel
{ "resource": "" }
c28501
train
// GetPrintResult gets a result with a formatted string.
{ "resource": "" }
c28502
train
// IsCurrentTimeExpr returns whether e is CurrentTimeExpr.
{ "resource": "" }
c28503
train
// group local tasks into one task group
{ "resource": "" }
c28504
train
// splitWhere split a where expression to a list of AND conditions.
{ "resource": "" }
c28505
train
// CoerceArithmetic converts datum to appropriate datum for arithmetic computing.
{ "resource": "" }
c28506
train
// ComputePlus computes the result of a+b.
{ "resource": "" }
c28507
train
// ComputeMinus computes the result of a-b.
{ "resource": "" }
c28508
train
// ComputeMod computes the result of a mod b.
{ "resource": "" }
c28509
train
// decimal2RoundUint converts a MyDecimal to an uint64 after rounding.
{ "resource": "" }
c28510
train
// ComputeBitNeg computes the result of ~a.
{ "resource": "" }
c28511
train
// ComputeBitXor computes the result of a ^ b.
{ "resource": "" }
c28512
train
// covertNonIntegerToUint64 coverts a non-integer to an uint64
{ "resource": "" }
c28513
train
// calculateSum adds v to sum.
{ "resource": "" }
c28514
train
// setup asynchronously to merge multiple channels into one channel
{ "resource": "" }
c28515
train
// Pipe runs the code as an external program, which processes the // tab-separated input from the program's stdin, and outout to // stdout also in tab-separated lines.
{ "resource": "" }
c28516
train
// DoLocalTop streamingly compare and get the top n items
{ "resource": "" }
c28517
train
// NewValueExpr creates a ValueExpr with value, and sets default field type.
{ "resource": "" }
c28518
train
// SetProfiling profiling will generate cpu and memory profile files when the executors are completed.
{ "resource": "" }
c28519
train
// WithFile sends any related file over to gleam agents // so the task can still access these files on gleam agents. // The files are placed on the executed task's current working directory.
{ "resource": "" }
c28520
train
// WriteTo encode and write a row of data to the writer
{ "resource": "" }
c28521
train
// ReadRow read and decode one row of data
{ "resource": "" }
c28522
train
// EncodeKeys encode keys to a blob, for comparing or sorting
{ "resource": "" }
c28523
train
// DecodeRow decodes one row of data from a blob
{ "resource": "" }
c28524
train
// ProcessRow Reads and processes rows until EOF
{ "resource": "" }
c28525
train
// the distance is a relative value, similar to network lantency
{ "resource": "" }
c28526
train
// ResolveName resolves table name and column name. // It generates ResultFields for ResultSetNode and resolves ColumnNameExpr to a ResultField.
{ "resource": "" }
c28527
train
// currentContext gets the current resolverContext.
{ "resource": "" }
c28528
train
// pushContext is called when we enter a statement.
{ "resource": "" }
c28529
train
// popContext is called when we leave a statement.
{ "resource": "" }
c28530
train
// pushJoin is called when we enter a join node.
{ "resource": "" }
c28531
train
// popJoin is called when we leave a join node.
{ "resource": "" }
c28532
train
// handleTableName looks up and sets the schema information and result fields for table name.
{ "resource": "" }
c28533
train
// handleJoin sets result fields for join.
{ "resource": "" }
c28534
train
// handleColumnName looks up and sets ResultField for // the column name.
{ "resource": "" }
c28535
train
// resolveColumnNameInContext looks up and sets ResultField for a column with the ctx.
{ "resource": "" }
c28536
train
// resolveColumnNameInOnCondition resolves the column name in current join.
{ "resource": "" }
c28537
train
// handleFieldList expands wild card field and sets fieldList in current context.
{ "resource": "" }
c28538
train
// GetAllCharsets gets all charset descriptions in the local charsets.
{ "resource": "" }
c28539
train
// ValidCharsetAndCollation checks the charset and the collation validity // and returns a boolean.
{ "resource": "" }
c28540
train
// GetDefaultCollation returns the default collation for charset.
{ "resource": "" }
c28541
train
// GetCharsetInfo returns charset and collation for cs as name.
{ "resource": "" }
c28542
train
// tryToPushDownAgg tries to push down an aggregate function into a join path. If all aggFuncs are first row, we won't // process it temporarily. If not, We will add additional group by columns and first row functions. We make a new aggregation // operator.
{ "resource": "" }
c28543
train
// separate step groups into layers of step group ids via depencency analysis
{ "resource": "" }
c28544
train
// argsToSpecifiedType converts the type of all arguments in args into string type or double type.
{ "resource": "" }
c28545
train
// Collect stat from "gleam execute" started mapper reducer process
{ "resource": "" }
c28546
train
// Lookup returns the encoding with the specified label, and its canonical // name. It returns nil and the empty string if label is not one of the // standard encodings for HTML. Matching is case-insensitive and ignores // leading and trailing whitespace.
{ "resource": "" }
c28547
train
// SetHasHeader sets whether the data contains header
{ "resource": "" }
c28548
train
// EncodeDecimal encodes a decimal d into a byte slice which can be sorted lexicographically later.
{ "resource": "" }
c28549
train
// buildInnerApply builds apply plan with outerPlan and innerPlan, which apply inner-join for every row from outerPlan and the whole innerPlan.
{ "resource": "" }
c28550
train
// detachTableScanConditions distinguishes between access conditions and filter conditions from conditions.
{ "resource": "" }
c28551
train
// ToString returns the binary string for bit type.
{ "resource": "" }
c28552
train
// Equal checks if err is equal to e.
{ "resource": "" }
c28553
train
// ToSQLError convert Error to mysql.SQLError.
{ "resource": "" }
c28554
train
// ErrorEqual returns a boolean indicating whether err1 is equal to err2.
{ "resource": "" }
c28555
train
// the tasks should run on the source dataset shard
{ "resource": "" }
c28556
train
// the task should run on the destination dataset shard
{ "resource": "" }
c28557
train
// All dataset should have the same number of shards.
{ "resource": "" }
c28558
train
// IsPoint returns if the index range is a point.
{ "resource": "" }
c28559
train
// Read accepts a function to read data into the flow, creating a new dataset. // This allows custom complicated pre-built logic for new data sources.
{ "resource": "" }
c28560
train
// Listen receives textual inputs via a socket. // Multiple parameters are separated via tab.
{ "resource": "" }
c28561
train
// Hint adds hints to the flow.
{ "resource": "" }
c28562
train
// GetTotalSize returns the total size in MB for the dataset. // This is based on the given hint.
{ "resource": "" }
c28563
train
// GetPartitionSize returns the size in MB for each partition of // the dataset. This is based on the hinted total size divided by // the number of partitions.
{ "resource": "" }
c28564
train
// CompareString is like Compare, // but parses string to Time then compares.
{ "resource": "" }
c28565
train
// AdjustYear is used for adjusting year and checking its validation.
{ "resource": "" }
c28566
train
// Format is `SS.FFFFFF`.
{ "resource": "" }
c28567
train
// Format is `DD HH`.
{ "resource": "" }
c28568
train
// Format is `YYYY-MM`.
{ "resource": "" }
c28569
train
// mysqlTimeFix fixes the mysqlTime use the values in the context.
{ "resource": "" }
c28570
train
// strToDate converts date string according to format, returns true on success, // the value will be stored in argument t or ctx.
{ "resource": "" }
c28571
train
// 0th 1st 2nd 3rd ...
{ "resource": "" }
c28572
train
// TsEmit encode and write a row of data to os.Stdout // with ts in milliseconds epoch time
{ "resource": "" }
c28573
train
// Parse parses a query string to raw ast.StmtNode. // If charset or collation is "", default charset and collation will be used.
{ "resource": "" }
c28574
train
// ParseOneStmt parses a query and returns an ast.StmtNode. // The query must have one statement, otherwise ErrSyntax is returned.
{ "resource": "" }
c28575
train
// The select statement is not at the end of the whole statement, if the last // field text was set from its offset to the end of the src string, update // the last field text.
{ "resource": "" }
c28576
train
// InferType infers result type for ast.ExprNode.
{ "resource": "" }
c28577
train
// 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 used in a string context, the result is returned as a string. // If used in a numeric context, the result is returned as a decimal, real, or integer value.
{ "resource": "" }
c28578
train
// like expression expects the target expression and pattern to be a string, if it's not, we add a cast function.
{ "resource": "" }
c28579
train
// AddCastToString adds a cast function to string type if the expr charset is not UTF8.
{ "resource": "" }
c28580
train
// ConvertValueToColumnTypeIfNeeded checks if the expr in PatternInExpr is column name, // and casts function to the items in the list.
{ "resource": "" }
c28581
train
// DecimalDiv does division of two decimals. // // from1 - dividend // from2 - divisor // to - quotient // fracIncr - increment of fraction
{ "resource": "" }
c28582
train
// Requirement is TaskGroup // Object is Agent's Location
{ "resource": "" }
c28583
train
// ReduceByKey runs the reducer registered to the reducerId, // combining rows with the same key fields into one row
{ "resource": "" }
c28584
train
// Reduce runs the reducer registered to the reducerId, // combining all rows into one row
{ "resource": "" }
c28585
train
// decorrelate function tries to convert apply plan to join plan.
{ "resource": "" }
c28586
train
// BufWrites ensures all writers are bufio.Writer // For any bufio.Writer created here, flush it before returning.
{ "resource": "" }
c28587
train
// reset resets the sql string to be scanned.
{ "resource": "" }
c28588
train
// Errorf tells scanner something is wrong. // Scanner satisfies yyLexer interface which need this function.
{ "resource": "" }
c28589
train
// handleEscape handles the case in scanString when previous char is '\'.
{ "resource": "" }
c28590
train
// inc increase the position offset of the reader. // peek must be called before calling inc!
{ "resource": "" }
c28591
train
// AddChild for parent.
{ "resource": "" }
c28592
train
// InsertPlan means inserting plan between two plans.
{ "resource": "" }
c28593
train
// RemovePlan means removing a plan.
{ "resource": "" }
c28594
train
// Mapper runs the mapper registered to the mapperId. // This is used to execute pure Go code.
{ "resource": "" }
c28595
train
// Select selects multiple fields into the next dataset. The index starts from 1. // The first one is the key
{ "resource": "" }
c28596
train
// Select selects multiple fields into the next dataset. The index starts from 1.
{ "resource": "" }
c28597
train
// LocalLimit take the local first n rows and skip all other rows.
{ "resource": "" }
c28598
train
// find mergeable parent step or itself if parent is not mergeable
{ "resource": "" }
c28599
train
// group local steps into one step group
{ "resource": "" }