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

Optimize transformer #24

Closed
wants to merge 0 commits into from
Closed

Conversation

ChrisLing1
Copy link

No description provided.

@ChrisLing1 ChrisLing1 changed the title Take list pop and append out of transformer Optimize transformer Aug 18, 2022
tap_s3_csv/transform.py Outdated Show resolved Hide resolved
tap_s3_csv/transform.py Outdated Show resolved Hide resolved
@@ -169,10 +175,6 @@ def transform_recur(self, data, schema, path, source_type=None):
if not isinstance(types, list):

Choose a reason for hiding this comment

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

at this point, types is expected to be lists from transform_schema_recur. can remove this check

tap_s3_csv/transform.py Outdated Show resolved Hide resolved
@@ -249,15 +249,19 @@ def sync_csv_file(config, file_handle, s3_path, table_spec, stream, timers={}):
config, source_type_map)
timers['resolve_fields'] += time.time() - start

# modify schema to put null as the last time to check for

Choose a reason for hiding this comment

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

"time" -> "type"
put this comment at the top of transform_schema_recur in transform.py so we know what the function is expected to do

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.

2 participants