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

vdk-oracle: support type inference #2948

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

DeltaMichael
Copy link
Contributor

Why?

Inferring the type in case a string is passed in the payload instead of the corresponding data type improves the user experience. Type conversion can be relegated to vdk instead of doing pre-processing of large payloads inside data jobs

What?

Add column data types to column cache
In case a string is passed, infer the python data type based on the Oracle column data type.
In case math.nan is passed, write NULL to the Oracle table

How was this tested?

Ran functional tests locally
CI/CD

What kind of change is this?

Feature/non-breaking

@DeltaMichael DeltaMichael force-pushed the person/mdilyan/vdk-oracle-type-inference branch from 4861209 to 5dc685b Compare November 27, 2023 18:27
Copy link
Contributor

@gabrielgeorgiev1 gabrielgeorgiev1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, left some comments, make sure to address the codacy warnings, especially the isinstance one

@DeltaMichael DeltaMichael force-pushed the person/mdilyan/vdk-oracle-type-inference branch 2 times, most recently from 566bc6e to 3b9e8cb Compare November 30, 2023 11:56
Why?

Inferring the type in case a string is
passed in the payload instead of the corresponding
data type improves the user experience

Type conversion can be relegated to vdk instead of
doing pre-processing of large payloads inside data jobs

What?

Add column data types to column cache
In case a string is passed, infer the python data type based on the Oracle column data type
In case math.nan is passed, write NULL to the Oracle table

How was this tested?

Ran functional tests locally
CI/CD

What kind of change is this?

Feature/non-breaking

Signed-off-by: Dilyan Marinov <[email protected]>
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/vdk-oracle-type-inference branch from 3b9e8cb to d8b4d97 Compare November 30, 2023 14:12
@DeltaMichael DeltaMichael enabled auto-merge (squash) November 30, 2023 14:22
@DeltaMichael DeltaMichael merged commit 43f5bdc into main Nov 30, 2023
@DeltaMichael DeltaMichael deleted the person/mdilyan/vdk-oracle-type-inference branch November 30, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants