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)
- changefeedccl: add duplicate ordering test HOT 2
- pkg/sql/logictest/tests/fakedist-vec-off/fakedist-vec-off_test: TestLogic_hash_join failed HOT 1
- ccl/changefeedccl: TestChangefeedHandlesDrainingNodes failed HOT 1
- pkg/sql/logictest/tests/cockroach-go-testserver-23.1/cockroach-go-testserver-23_1_test: TestLogic_mixed_version_procedure failed HOT 1
- kv/kvserver: TestNewRangefeedForceLeaseRetry failed HOT 1
- pkg/sql/logictest/tests/cockroach-go-testserver-23.1/cockroach-go-testserver-23_1_test: TestLogic_upgrade_skip_version failed HOT 1
- pkg/sql/logictest/tests/cockroach-go-testserver-23.1/cockroach-go-testserver-23_1_test: TestLogic_upgrade_skip_version failed HOT 1
- kv/kvserver: TestReplicateQueueRebalanceMultiStore failed HOT 1
- pkg/sql/logictest/tests/local-vec-off/local-vec-off_test: TestLogic_hash_join failed HOT 3
- acceptance: TestCompose failed [port 26257 failed: Connection refused]
- : failed
- roachprod: The insecure flag is not considered when deleting a cluster HOT 1
- roachtest: schemachange/mixed-versions failed HOT 1
- sql/tests: TestCreateRandomSchema failed [column "crdb_internal_idx_expr" does not exist] HOT 1
- sql: histogram does not match column type after ALTER TABLE ALTER COLUMN SET DATA TYPE HOT 3
- ccl/changefeedccl: TestChangefeedDescription failed HOT 1
- ccl/changefeedccl: TestChangefeedPropagatesTerminalError failed HOT 1
- pkg/sql/logictest/tests/fakedist-vec-off/fakedist-vec-off_test: TestLogic_hash_join failed HOT 2
- kv/kvserver: TestRaftTransportClockPropagation failed HOT 1
- roachtest: unoptimized-query-oracle/disable-rules=half/rand-tables failed 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.