Comments (4)
I think the DSC check here needs a small tweak:
cockroach/pkg/sql/schemachanger/scbuild/internal/scbuildstmt/create_index.go
Lines 545 to 552 in 7346b9b
If I take the original repro and rename the column "col\u000b7ͪ%q_w0_10" to "col7_w0_10", removing any UTF elements, the check works as expected. I believe the code needs to account for UTF characters. Maybe using something like colName := storingNode.Normalize()
would help.
Another aspect of this issue is that with the DSC, we seem to allow virtual columns in the STORING clause. I think this should be blocked to be consistent with the legacy schema changer.
from cockroach.
We should block store + PK in the DSC like we do in the legacy
from cockroach.
The check should be made in the builder, before the schema change begins executing.
from cockroach.
The legacy schema changer has a check explicitly for the primary index:
cockroach/pkg/sql/catalog/tabledesc/structured.go
Lines 732 to 740 in d1b3921
A similar check is needed in the declarative schema changer, around here:
cockroach/pkg/sql/schemachanger/scbuild/internal/scbuildstmt/create_index.go
Lines 545 to 552 in 7346b9b
from cockroach.
Related Issues (20)
- Index ID 1 found in depended-on-by references, no such index in this relation HOT 3
- roachtest: disagg-rebalance/aws/n4cpu4 failed
- rpc: TestRemoteOffsetUnhealthy failed HOT 1
- pkg/jobs/jobsprofiler/jobsprofiler_test: TestTraceRecordingOnResumerCompletion failed
- kv/kvserver/liveness: TestScanNodeVitalityFromKV failed HOT 1
- ccl/changefeedccl: TestNoBackfillAfterNonTargetColumnDrop failed
- kv/kvnemesis: TestKVNemesisMultiNode failed HOT 1
- ccl/multiregionccl: TestRegionAddDropWithConcurrentBackupOps failed
- Failed to construct index entries during backfill: overflow during Encode HOT 3
- jobs: add crdb_internal.scheduled_jobs built in
- sql/stmtdiagnostics: TestDiagnosticsRequest failed
- Sentry: txn.go:1234: GetLeafTxnInputState() called on leaf txn (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1 | github.com/cockroa... HOT 2
- sql/privileges: add a unit test to ensure no system privilege is introduced without a equivalent read-only privilege
- sql/schemachanger: support trivial ALTER COLUMN ... SET TYPE in declarative schema changer
- pkg/sql/logictest/tests/cockroach-go-testserver-23.1/cockroach-go-testserver-23_1_test: TestLogic_mixed_version_udf_execute_privileges failed HOT 1
- acceptance: TestDockerCLI_test_replication_protocol failed [unable to apply cgroup configuration] HOT 1
- ui: add on demand debug info to sql activity pages
- kv: improve deadlock observability
- Sentry: logical_props_builder.go:1699: comparison overload not found (×, ×, ×) (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql/o... HOT 2
- Sentry: logical_props_builder.go:1699: comparison overload not found (×, ×, ×) (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql/o... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cockroach.