-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
file-based CDK: Configurable strings_can_be_null #29298
Conversation
@@ -210,13 +230,6 @@ def _cast_types( | |||
prop_type = property_types.get(key) | |||
cast_value: Any = value | |||
|
|||
if isinstance(prop_type, list): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved outside the function so the deduped property types can also be used in _to_nullable
@@ -43,6 +43,18 @@ | |||
"description": "Used during spec; allows the developer to configure the cloud provider specific options\nthat are needed when users configure a file-based source.", | |||
"type": "object", | |||
"properties": { | |||
"start_date": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not 100% sure why this is being re-ordered, but properties is a map so this shouldn't matter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @girarda! One small question.
* [ISSUE airbytehq#28893] infer csv schema * [ISSUE airbytehq#28893] align with pyarrow * Automated Commit - Formatting Changes * [ISSUE airbytehq#28893] legacy inference and infer only when needed * [ISSUE airbytehq#28893] fix scenario tests * [ISSUE airbytehq#28893] using discovered schema as part of read * [ISSUE airbytehq#28893] self-review + cleanup * [ISSUE airbytehq#28893] fix test * [ISSUE airbytehq#28893] code review part #1 * [ISSUE airbytehq#28893] code review part #2 * Fix test * formatcdk * first pass * [ISSUE airbytehq#28893] code review * fix mypy issues * comment * rename for clarity * Add a scenario test case * this isn't optional anymore * FIX test log level * Re-adding failing tests * [ISSUE airbytehq#28893] improve inferrence to consider multiple types per value * Automated Commit - Formatting Changes * [ISSUE airbytehq#28893] remove InferenceType.PRIMITIVE_AND_COMPLEX_TYPES * Code review * Automated Commit - Formatting Changes * fix unit tests --------- Co-authored-by: maxi297 <[email protected]> Co-authored-by: maxi297 <[email protected]>
What
How
When converting values to null:
Recommended reading order
airbyte-cdk/python/airbyte_cdk/sources/file_based/config/csv_format.py
airbyte-cdk/python/airbyte_cdk/sources/file_based/file_types/csv_parser.py