{"modulePath":"github.com/matrixorigin/matrixone","version":"v0.7.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package multi\n\nCopyright 2021 - 2022 Matrix Origin\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n### Copyright 2021 - 2022 Matrix Origin {#hdr-Copyright_2021___2022_Matrix_Origin}\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n## Constants\n\n```go\nconst (\n\tMaxSpacePerRowOfLpad  = int64(16 * 1024 * 1024)\n\tParameterSourceString = int(0)\n\tParameterLengths      = int(1)\n\tParameterPadString    = int(2)\n)\n```\n\n```go\nconst UINT16_MAX = ^uint16(0)\n```\n\n```go\nconst UUID_LENGTH uint32 = 36\n```\n\n## Variables\n\n```go\nvar (\n\tDecimal128Zero = types.Decimal128_FromInt32(0)\n)\n```\n\n```go\nvar (\n\tMaxPad int64\n)\n```\n\n## Functions\n\n```go\nfunc AddFaultPoint(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc CeilDecimal128(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc CeilFloat64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc CeilInt64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc CeilStr(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\nParse string to float instead of int.\n\n```go\nfunc CeilUint64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc Concat(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc Concat_ws(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\ntodo(broccoli): revise this, maybe rewrite this? at least clean up the logic\n\n```go\nfunc CurrentTimestamp(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\na general round method is needed for timestamp fsp\n\n```go\nfunc DateAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc DateStringAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc DateStringSub(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc DateSub(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc DatetimeAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc DatetimeSub(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc DisableFaultInjection(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc EnableFaultInjection(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FieldNumber[T number](vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FieldString(vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FloorDecimal128(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FloorFloat64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\nfloor function's evaluation for arguments: \\[float64]\n\n```go\nfunc FloorInt64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\nfloor function's evaluation for arguments: \\[int64]\n\n```go\nfunc FloorStr(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\nParse string to float instead of int.\n\n```go\nfunc FloorUInt64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\nfloor function's evaluation for arguments: \\[uint64]\n\n```go\nfunc Format(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FromUnixTimeFloat64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FromUnixTimeFloat64Format(vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FromUnixTimeInt64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FromUnixTimeInt64Format(vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FromUnixTimeUint64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc FromUnixTimeUint64Format(vs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc Hash(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc JsonExtract(parameters []*vector.Vector, result vector.FunctionResultWrapper, proc *process.Process, length int) error\n```\n\n```go\nfunc Lpad(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\nFirst Parameter: source string Second Parameter: length Third Parameter: pad string\n\n```go\nfunc MustTimestamp(loc *time.Location, s string) types.Timestamp\n```\n\n```go\nfunc Pi(_ []*vector.Vector, _ *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc RegularInstr(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc RegularLike(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc RegularReplace(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc RegularSubstr(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc RemoveFaultPoint(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc Replace(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc RoundFloat64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc RoundInt64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc RoundUint64(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc Rpad(origVecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc Serial(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\nSerial have a similar function named SerialWithCompacted in the index\\_util Serial func is used by users, the function make true when input vec have ten rows, the output vec is ten rows, when the vectors have null value, the output vec will set the row null for example: input vec is \\[\\[1, 1, 1], \\[2, 2, null], \\[3, 3, 3]] result vec is \\[serial(1, 2, 3), serial(1, 2, 3), null]\n\n```go\nfunc SerialWithSomeCols(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc SplitPart(vectors []*vector.Vector, proc *process.Process) (vec *vector.Vector, err error)\n```\n\n```go\nfunc SubStrIndex(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc Substring(inputVecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc TimeAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc TimeStampAdd(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc TimeStampDiff(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc TimeStampSub(vectors []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc TriggerFaultPoint(vecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc Trim(parameters []*vector.Vector, result vector.FunctionResultWrapper, proc *process.Process, length int) error\n```\n\n```go\nfunc UTCTimestamp(_ []*vector.Vector, _ *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc UUID(inputVecs []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc UnixTimestamp(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc UnixTimestampVarcharToDecimal128(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc UnixTimestampVarcharToFloat64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n```go\nfunc UnixTimestampVarcharToInt64(lv []*vector.Vector, proc *process.Process) (*vector.Vector, error)\n```\n\n","path":"github.com/matrixorigin/matrixone/pkg/sql/plan/function/builtin/multi","name":"multi","synopsis":"","isRedistributable":true}
