Skip to content

Commit

Permalink
colexecbase: add more casts between native types and improve template
Browse files Browse the repository at this point in the history
This commit introduces several casts between natively supported types,
mostly bytes-like.

This commit also cleans up things around BCEs because bytes-like vectors
don't support slicing.

Additionally, this commit refactors the cast template in order to use
the execgen rather than the text/template stuff as well as makes the
error for unsupported casts more descriptive.

Release note: None
  • Loading branch information
yuzefovich committed Jul 22, 2021
1 parent 4ad9b52 commit dcfe20c
Show file tree
Hide file tree
Showing 7 changed files with 4,764 additions and 3,189 deletions.
4 changes: 4 additions & 0 deletions pkg/sql/colexec/colexecbase/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ go_library(
"//pkg/sql/colexecerror",
"//pkg/sql/colexecop",
"//pkg/sql/colmem", # keep
"//pkg/sql/lex", # keep
"//pkg/sql/pgwire/pgcode",
"//pkg/sql/pgwire/pgerror",
"//pkg/sql/rowenc", # keep
"//pkg/sql/sem/tree", # keep
"//pkg/sql/types",
"//pkg/util", # keep
"//pkg/util/duration", # keep
"//pkg/util/json", # keep
"//pkg/util/log",
"//pkg/util/uuid", # keep
"@com_github_cockroachdb_apd_v2//:apd", # keep
"@com_github_cockroachdb_errors//:errors",
"@com_github_lib_pq//oid", # keep
],
)

Expand Down
Loading

0 comments on commit dcfe20c

Please sign in to comment.