Skip to content

Commit

Permalink
fix: make append more flexible with differing schemas
Browse files Browse the repository at this point in the history
This is causing issues with data that has additional fields added during processing. I don't believe that we need it since [we check the schemas of source and destination before this code runs](https://github.com/agrc/forklift/blob/d442f7b7d866527ab886fbd2db82e1afa7af7072/src/forklift/core.py#L90).
  • Loading branch information
stdavis authored and steveoh committed Mar 16, 2020
1 parent d442f7b commit 3d76902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forklift/change_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def update(self, crate):
arcpy.management.TruncateTable(crate.destination)

with arcpy.EnvManager(geographicTransformations=crate.geographic_transformation):
arcpy.management.Append(crate.source, crate.destination, 'TEST')
arcpy.management.Append(crate.source, crate.destination)

table_name = crate.source_name.lower()
with arcpy.da.UpdateCursor(self.hash_table, [hash_field], where_clause=f'{table_name_field} = \'{table_name}\'') as cursor:
Expand Down

0 comments on commit 3d76902

Please sign in to comment.