Skip to content

Support datatype cast for insert api same as insert into sql #15015

@zhuqi-lucas

Description

@zhuqi-lucas

Is your feature request related to a problem or challenge?

Now insert into sql we will automatically case the datatype to consistent with the table datatype, we'd better to support datatype cast for insert api also. So we will make the insert into behaviour consistent.

Details code for sql way for insert into:

The code here:

.cast_to(target_field.data_type(), source.schema())?

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions