Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajwerner/wrapped descriptors #6

Merged
merged 59 commits into from
Sep 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
4f38f0e
storage: Remove extra vars from runExportToSst
itsbilal Jun 3, 2020
a954942
sql: extract out planning of table readers into a separate method
yuzefovich Jun 2, 2020
3ea982a
sql: implement ConstructPlan by new factory
yuzefovich Jun 2, 2020
2949573
sql: populate spatial_ref_sys table with projection entries
otan Jun 5, 2020
3763073
sql: use nicer apd.Decimal.SetInt64 in the code base
yuzefovich Jun 5, 2020
8dfdf3a
geo: move TestClipRectByEWKT test to geoindex
otan Jun 5, 2020
13845e4
colexec: don't randomize batch size in benches
jordanlewis May 31, 2020
269f635
colexec: remove unnecessary execgen imports
jordanlewis Jun 6, 2020
3ccbdbb
execgen: add generic inliner
jordanlewis Jun 5, 2020
1cee807
cloud: Added support to all ExternalStorage ReadFile methods, to rais…
adityamaru Jun 4, 2020
4541522
scrips/release-notes: fix the error encountered on #47761
knz Jun 8, 2020
685194e
Merge #49852
Jun 8, 2020
a1028aa
jobs: rename Resume to Unpause
Jun 8, 2020
9a4aae5
sql: disallow cross database type references
rohany Jun 3, 2020
e14af52
Makefile: make PROJ compile on Publish Bleeding Edge
otan Jun 8, 2020
d66ee36
sql: implement ConstructScan in distsql spec factory
yuzefovich Jun 2, 2020
15bb4ae
sql: enforce the assumption that wantedColumns is not nil for scans
yuzefovich Jun 3, 2020
6ff32cb
opt: fix error caused by recursive CTE with zero rows on left side
rytaft Jun 8, 2020
b0a478a
lint: fix a linter message
andreimatei Jun 8, 2020
769897a
Merge #49913
Jun 8, 2020
1c97090
opt: incorporate operator volatility
RaduBerinde Jun 8, 2020
a966fd4
Merge #49728 #49841 #49919 #49958 #49961
Jun 8, 2020
a1fecbc
cmd/generate-binary: move some decimal encoding tests to auto-gen script
arulajmani Jun 8, 2020
5e0cecf
Merge #49682
Jun 8, 2020
759e144
opt: add rule to fold limits
DrewKimball Jun 4, 2020
12b774b
vendor: bump Pebble to feb930
jbowens Jun 8, 2020
15c11df
Merge #49887 #49917 #49920 #49923 #49956 #49963
Jun 8, 2020
5138754
importccl: add basic tests for CSV export of enum types
rohany Jun 8, 2020
7137028
build: add build that simply compiles CRDB on supported platforms
otan Jun 8, 2020
ef7ab9b
util/log: make sensitive data redactable
knz Apr 26, 2020
9b641ae
Merge #49957 #49967 #49974
Jun 8, 2020
0dd70ca
Merge #48051 #49978
Jun 8, 2020
e895e44
geo: fix GeoJSON and allow options in ST_AsGeoJSON
otan Jun 8, 2020
5cbdb0d
geo/geogfn: implement ST_Project
hueypark Jun 8, 2020
cb34350
Merge #49949
Jun 8, 2020
62bf6a2
sql: track fine-grained view dependencies
RichardJCai Jun 3, 2020
39ba63e
importccl: Correctly handle errors and cancellations during import.
Jun 8, 2020
31d7475
Merge #49872 #49888 #49931
Jun 8, 2020
f098913
Merge #49979
Jun 9, 2020
394d093
*: s/whitelist/allowlist/, s/blacklist/blocklist/
jordanlewis Jun 7, 2020
e7b0c76
geo: handle maximum decimal digits for ST_AsText
otan Jun 9, 2020
3e74b0d
Merge #49875
Jun 9, 2020
3c75694
Merge #49946
Jun 9, 2020
8677bc0
ui: CSS modules for Statements page filters
koorosh Apr 17, 2020
565ffce
Merge #48012
Jun 9, 2020
c5a7528
sqlbase: lift shared fields required for leasing to Descriptor
ajwerner May 12, 2020
bf18d34
sqlbase,catalog: Move the catalog.Descriptor interface to sqlbase
ajwerner May 29, 2020
0f3039f
sql,sqlbase: remove SetID() from the DescriptorProto interface
ajwerner Jun 1, 2020
7458f24
sqlbase,*: replace DescriptorProto with DescriptorInterface
ajwerner Jun 2, 2020
96411bf
sqlbase: introduce DatabaseDescriptorInterface and ImmutableDatabaseD…
ajwerner Jun 3, 2020
2352ada
sqlbase,*: adopt wrapper structs around DatabaseDescriptor
ajwerner Jun 3, 2020
c9bc02f
sqlbase,catalogkv,*: have GetDescriptorByID return an interface
ajwerner Jun 4, 2020
cbde216
sqlbase: lift methods from TypeDescriptor to ImmutableTypeDescriptor
ajwerner Jun 4, 2020
69b20a4
sqlbase: stop referring to Name and ID on TypeDescriptor directly
ajwerner Jun 4, 2020
c832c9c
sqlbase,*: access ID and Name on DatabaseDescriptor through methods
ajwerner Jun 4, 2020
7c86629
sqlbase: add wrapper types for SchemaDescriptor
ajwerner Jun 8, 2020
1589d99
sqlbase: lift interface methods from SchemaDescriptor
ajwerner Jun 8, 2020
9b626b0
catalogkv,*: "unwrap" descriptor before returning them
ajwerner Jun 8, 2020
d5229de
sqlbase: generalize setting of ModificationTime
ajwerner Jun 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 24 additions & 5 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ ignored = [
name = "github.com/docker/docker"
branch = "master"

[[constraint]]
name = "github.com/dave/dst"
branch = "master"

[[constraint]]
name = "github.com/maruel/panicparse"
revision = "f20d4c4d746f810c9110e21928d4135e1f2a3efa"
Expand Down
25 changes: 20 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ LIBSNAPPY := $(SNAPPY_DIR)/libsnappy.a
LIBEDIT := $(LIBEDIT_DIR)/src/.libs/libedit.a
LIBROACH := $(LIBROACH_DIR)/libroach.a
LIBROACHCCL := $(LIBROACH_DIR)/libroachccl.a
LIBPROJ := $(PROJ_DIR)/lib/libproj.a
LIBPROJ := $(PROJ_DIR)/lib/libproj$(if $(target-is-windows),_4_9).a
LIBKRB5 := $(KRB5_DIR)/lib/libgssapi_krb5.a
PROTOC := $(PROTOC_DIR)/protoc

Expand Down Expand Up @@ -553,7 +553,7 @@ $(BASE_CGO_FLAGS_FILES): Makefile build/defs.mk.sig | bin/.submodules-initialize
@echo >> $@
@echo 'package $(if $($(@D)-package),$($(@D)-package),$(notdir $(@D)))' >> $@
@echo >> $@
@echo '// #cgo CPPFLAGS: $(addprefix -I,$(JEMALLOC_DIR)/include $(KRB_CPPFLAGS) $(GEOS_DIR)/capi $(PROJ_DIR)/lib)' >> $@
@echo '// #cgo CPPFLAGS: $(addprefix -I,$(JEMALLOC_DIR)/include $(KRB_CPPFLAGS))' >> $@
@echo '// #cgo LDFLAGS: $(addprefix -L,$(CRYPTOPP_DIR) $(PROTOBUF_DIR) $(JEMALLOC_DIR)/lib $(SNAPPY_DIR) $(LIBEDIT_DIR)/src/.libs $(ROCKSDB_DIR) $(LIBROACH_DIR) $(KRB_DIR) $(PROJ_DIR)/lib)' >> $@
@echo 'import "C"' >> $@

Expand Down Expand Up @@ -825,7 +825,7 @@ SQLPARSER_TARGETS = \

PROTOBUF_TARGETS := bin/.go_protobuf_sources bin/.gw_protobuf_sources bin/.cpp_protobuf_sources bin/.cpp_ccl_protobuf_sources

DOCGEN_TARGETS := bin/.docgen_bnfs bin/.docgen_functions
DOCGEN_TARGETS := bin/.docgen_bnfs bin/.docgen_functions docs/generated/redact_safe.md

EXECGEN_TARGETS = \
pkg/col/coldata/vec.eg.go \
Expand Down Expand Up @@ -972,7 +972,7 @@ buildshort: ## Build the CockroachDB binary without the admin UI.
build: $(COCKROACH)
buildoss: $(COCKROACHOSS)
buildshort: $(COCKROACHSHORT)
build buildoss buildshort: $(DOCGEN_TARGETS)
build buildoss buildshort: $(if $(is-cross-compile),,$(DOCGEN_TARGETS))
build buildshort: $(if $(is-cross-compile),,$(SETTINGS_DOC_PAGE))

# For historical reasons, symlink cockroach to cockroachshort.
Expand Down Expand Up @@ -1528,6 +1528,19 @@ bin/.docgen_functions: bin/docgen
docgen functions docs/generated/sql --quiet
touch $@

.PHONY: docs/generated/redact_safe.md

docs/generated/redact_safe.md:
@(echo "The following types are considered always safe for reporting:"; echo; \
echo "File | Type"; echo "--|--") >$@.tmp
@git grep '^func \(.*\) SafeValue\(\)' | \
grep -v '^pkg/util/redact' | \
sed -E -e 's/^([^:]*):func \(([^ ]* )?(.*)\) SafeValue.*$$/\1 | \`\3\`/g' >>$@.tmp || rm -f $@.tmp
@git grep 'redact\.RegisterSafeType' | \
grep -v '^pkg/util/redact' | \
sed -E -e 's/^([^:]*):.*redact\.RegisterSafeType\((.*)\).*/\1 | \`\2\`/g' >>$@.tmp || rm -f $@.tmp
@mv -f $@.tmp $@

settings-doc-gen := $(if $(filter buildshort,$(MAKECMDGOALS)),$(COCKROACHSHORT),$(COCKROACH))

$(SETTINGS_DOC_PAGE): $(settings-doc-gen)
Expand Down Expand Up @@ -1671,6 +1684,7 @@ bins = \
bin/benchmark \
bin/cockroach-oss \
bin/cockroach-short \
bin/compile-builds \
bin/docgen \
bin/execgen \
bin/fuzz \
Expand Down Expand Up @@ -1715,7 +1729,8 @@ logictest-bins := bin/logictest bin/logictestopt bin/logictestccl
# Additional dependencies for binaries that depend on generated code.
#
# TODO(benesch): Derive this automatically. This is getting out of hand.
bin/workload bin/docgen bin/execgen bin/roachtest $(logictest-bins): $(LIBPROJ) $(CGO_FLAGS_FILES) $(SQLPARSER_TARGETS) $(PROTOBUF_TARGETS)
bin/workload bin/docgen bin/execgen bin/roachtest $(logictest-bins): $(SQLPARSER_TARGETS) $(PROTOBUF_TARGETS)
bin/workload bin/docgen bin/roachtest $(logictest-bins): $(LIBPROJ) $(CGO_FLAGS_FILES)
bin/workload bin/roachtest $(logictest-bins): $(EXECGEN_TARGETS)
bin/roachtest $(logictest-bins): $(C_LIBS_CCL) $(CGO_FLAGS_FILES) $(OPTGEN_TARGETS)

Expand Down
9 changes: 9 additions & 0 deletions build/teamcity-compile-builds.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -euxo pipefail

export BUILDER_HIDE_GOPATH_SRC=1

build/builder.sh go install ./pkg/cmd/compile-builds
build/builder.sh env \
compile-builds
Loading