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

weird error message when INSERT INTO table #4301

Closed
wzzzzd opened this issue Jul 29, 2022 · 2 comments
Closed

weird error message when INSERT INTO table #4301

wzzzzd opened this issue Jul 29, 2022 · 2 comments
Labels
type/bug Something isn't working

Comments

@wzzzzd
Copy link
Contributor

wzzzzd commented Jul 29, 2022

dev=> create table t(a varchar default(date '2022-07-29 19:16:23'), b double default(0.1145141919180));
CREATE_TABLE
dev=> insert into t values (timestamp '2022-07-29 19:17:29', NULL);
ERROR:  QueryError: Scheduler error: Rpc error: gRPC status: status: Internal, message: "internal error: [PlanNode: Ok(Insert(InsertNode { table_source_id: 1001, column_ids: [] }))] Failed to build executor: internal error: [PlanNode: Ok(Values(ValuesNode { tuples: [ExprTuple { cells: [ExprNode { expr_type: Cast, return_type: Some(DataType { type_name: Varchar, precision: 0, scale: 0, is_nullable: true, interval_type: Unspecified, field_type: [] }), rex_node: Some(FuncCall(FunctionCall { children: [ExprNode { expr_type: Cast, return_type: Some(DataType { type_name: Timestamp, precision: 0, scale: 0, is_nullable: true, interval_type: Unspecified, field_type: [] }), rex_node: Some(FuncCall(FunctionCall { children: [ExprNode { expr_type: ConstantValue, return_type: Some(DataType { type_name: Varchar, precision: 0, scale: 0, is_nullable: true, interval_type: Unspecified, field_type: [] }), rex_node: Some(Constant(ConstantValue { body: [50, 48, 50, 50, 45, 48, 55, 45, 50, 57, 32, 49, 57, 58, 49, 55, 58, 50, 57] })) }] })) }] })) }, ExprNode { expr_type: ConstantValue, return_type: Some(DataType { type_name: Double, precision: 0, scale: 0, is_nullable: true, interval_type: Unspecified, field_type: [] }), rex_node: None }] }], fields: [Field { data_type: Some(DataType { type_name: Varchar, precision: 0, scale: 0, is_nullable: true, interval_type: Unspecified, field_type: [] }), name: \"\" }, Field { data_type: Some(DataType { type_name: Double, precision: 0, scale: 0, is_nullable: true, interval_type: Unspecified, field_type: [] }), name: \"\" }] }))] Failed to build executor: Expr error: Cast2(Timestamp, Varchar)", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc", "risingwave-error-bin": "CAEShQxpbnRlcm5hbCBlcnJvcjogW1BsYW5Ob2RlOiBPayhJbnNlcnQoSW5zZXJ0Tm9kZSB7IHRhYmxlX3NvdXJjZV9pZDogMTAwMSwgY29sdW1uX2lkczogW10gfSkpXSBGYWlsZWQgdG8gYnVpbGQgZXhlY3V0b3I6IGludGVybmFsIGVycm9yOiBbUGxhbk5vZGU6IE9rKFZhbHVlcyhWYWx1ZXNOb2RlIHsgdHVwbGVzOiBbRXhwclR1cGxlIHsgY2VsbHM6IFtFeHByTm9kZSB7IGV4cHJfdHlwZTogQ2FzdCwgcmV0dXJuX3R5cGU6IFNvbWUoRGF0YVR5cGUgeyB0eXBlX25hbWU6IFZhcmNoYXIsIHByZWNpc2lvbjogMCwgc2NhbGU6IDAsIGlzX251bGxhYmxlOiB0cnVlLCBpbnRlcnZhbF90eXBlOiBVbnNwZWNpZmllZCwgZmllbGRfdHlwZTogW10gfSksIHJleF9ub2RlOiBTb21lKEZ1bmNDYWxsKEZ1bmN0aW9uQ2FsbCB7IGNoaWxkcmVuOiBbRXhwck5vZGUgeyBleHByX3R5cGU6IENhc3QsIHJldHVybl90eXBlOiBTb21lKERhdGFUeXBlIHsgdHlwZV9uYW1lOiBUaW1lc3RhbXAsIHByZWNpc2lvbjogMCwgc2NhbGU6IDAsIGlzX251bGxhYmxlOiB0cnVlLCBpbnRlcnZhbF90eXBlOiBVbnNwZWNpZmllZCwgZmllbGRfdHlwZTogW10gfSksIHJleF9ub2RlOiBTb21lKEZ1bmNDYWxsKEZ1bmN0aW9uQ2FsbCB7IGNoaWxkcmVuOiBbRXhwck5vZGUgeyBleHByX3R5cGU6IENvbnN0YW50VmFsdWUsIHJldHVybl90eXBlOiBTb21lKERhdGFUeXBlIHsgdHlwZ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ciBlcnJvcjogQ2FzdDIoVGltZXN0YW1wLCBWYXJjaGFyKQ", "date": "Fri, 29 Jul 2022 11:17:40 GMT", "content-length": "0"} }.
@wzzzzd wzzzzd added the type/bug Something isn't working label Jul 29, 2022
@BugenZhao
Copy link
Member

BugenZhao commented Jul 30, 2022

The actual error should be Failed to build executor: Expr error: Cast2(Timestamp, Varchar). For the verbose error message, we've already opened an issue for this. #3730

@wzzzzd
Copy link
Contributor Author

wzzzzd commented Jul 30, 2022

The actual error should be Failed to build executor: Expr error: Cast2(Timestamp, Varchar). For the verbose error message, we've already opened an issue for this. #3730

Got it. It seems this issue can be closed.

@wzzzzd wzzzzd closed this as completed Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants