Skip to content

[To rel/1.2] Fix error msg of altering not existing view#10252

Merged
MarcosZyk merged 1 commit intoapache:rel/1.2from
MarcosZyk:alter_not_exist_view
Jun 21, 2023
Merged

[To rel/1.2] Fix error msg of altering not existing view#10252
MarcosZyk merged 1 commit intoapache:rel/1.2from
MarcosZyk:alter_not_exist_view

Conversation

@MarcosZyk
Copy link
Contributor

@MarcosZyk MarcosZyk commented Jun 21, 2023

Description

Before this pr

IoTDB> alter view root.view(v1.c1, v1.c2, v2.c1, v2.c2) as select s1,s2 from root.db.d1, root.db1.d1;
Msg: 507: Alter view [root.view.v2.c2] failed when [Alter view] because all replicaset of schemaRegion 1 failed. [TDataNodeLocation(dataNodeId:1, clientRpcEndPoint:TEndPoint(ip:127.0.0.1, port:6667), internalEndPoint:TEndPoint(ip:127.0.0.1, port:10730), mPPDataExchangeEndPoint:
TEndPoint(ip:127.0.0.1, port:10740), dataRegionConsensusEndPoint:TEndPoint(ip:127.0.0.1, port:10760), schemaRegionConsensusEndPoint:TEndPoint(ip:127.0.0.1, port:10750))]

After this pr

IoTDB> alter view root.view(v1.c1, v1.c2, v2.c1, v2.c2) as select s1,s2 from root.db.d1, root.db1.d1;
Msg: 708: Batch process failed:[TSStatus(code:508, message:Path [root.view.v1.c2] does not exist), TSStatus(code:508, message:Path [root.view.v2.c2] does not exist), TSStatus(code:508, message:Path [root.view.v1.c1] does not exist), TSStatus(code:508, message:Path [root.view.v2
.c1] does not exist)]

@MarcosZyk MarcosZyk merged commit 64b91af into apache:rel/1.2 Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant