-
Notifications
You must be signed in to change notification settings - Fork 40
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
Refactor the append/merge
operator
#343
Comments
As part of this ticket we should add append/merge for all DBs too |
This was referenced May 24, 2022
Merged
kaxil
added a commit
that referenced
this issue
Jun 7, 2022
This PR refactors the Append operator to use the new interfaces. Breaking Changes: - Removed casting functionality - changed the interface from which uses `source_to_target_columns_map` instead of `columns`: ``` def append( self, main_table: Table, columns: List[str], casted_columns: dict, append_table: Table, ): ``` to ``` def append( source_table: Table, target_table: Table, source_to_target_columns_map: Optional[Dict[str, str]] = None, **kwargs, ): ``` This PR intends to keep the same logic as now and just use new interfaces so we can delete all the old files from old interfaces. The scope to whether or not we should have a single function or not is kept for #383 closes #343 closes #335 Co-Authored-By: Utkarsh Sharma <utkarsharma2@gmail.com>
Merged
kaxil
added a commit
that referenced
this issue
Jun 7, 2022
This PR refactors the Append operator to use the new interfaces. Breaking Changes: - Removed casting functionality - changed the interface from which uses `source_to_target_columns_map` instead of `columns`: ``` def append( self, main_table: Table, columns: List[str], casted_columns: dict, append_table: Table, ): ``` to ``` def append( source_table: Table, target_table: Table, source_to_target_columns_map: Optional[Dict[str, str]] = None, **kwargs, ): ``` This PR intends to keep the same logic as now and just use new interfaces so we can delete all the old files from old interfaces. The scope to whether or not we should have a single function or not is kept for #383 closes #343 closes #335 Co-Authored-By: Utkarsh Sharma <utkarsharma2@gmail.com>
kaxil
added a commit
that referenced
this issue
Jun 7, 2022
This PR refactors the Append operator to use the new interfaces. Breaking Changes: - Removed casting functionality - changed the interface from which uses `source_to_target_columns_map` instead of `columns`: ``` def append( self, main_table: Table, columns: List[str], casted_columns: dict, append_table: Table, ): ``` to ``` def append( source_table: Table, target_table: Table, source_to_target_columns_map: Optional[Dict[str, str]] = None, **kwargs, ): ``` This PR intends to keep the same logic as now and just use new interfaces so we can delete all the old files from old interfaces. The scope to whether or not we should have a single function or not is kept for #383 closes #343 closes #335 Co-Authored-By: Utkarsh Sharma <utkarsharma2@gmail.com>
kaxil
added a commit
that referenced
this issue
Jun 7, 2022
This PR refactors the Append operator to use the new interfaces. Breaking Changes: - Removed casting functionality - changed the interface from which uses `source_to_target_columns_map` instead of `columns`: ``` def append( self, main_table: Table, columns: List[str], casted_columns: dict, append_table: Table, ): ``` to ``` def append( source_table: Table, target_table: Table, source_to_target_columns_map: Optional[Dict[str, str]] = None, **kwargs, ): ``` This PR intends to keep the same logic as now and just use new interfaces so we can delete all the old files from old interfaces. The scope to whether or not we should have a single function or not is kept for #383 closes #343 closes #335 Co-Authored-By: Utkarsh Sharma <utkarsharma2@gmail.com>
kaxil
added a commit
that referenced
this issue
Jun 8, 2022
This PR refactors the Append operator to use the new interfaces. Breaking Changes: - Removed casting functionality - changed the interface from which uses `source_to_target_columns_map` instead of `columns`: ``` def append( self, main_table: Table, columns: List[str], casted_columns: dict, append_table: Table, ): ``` to ``` def append( source_table: Table, target_table: Table, source_to_target_columns_map: Optional[Dict[str, str]] = None, **kwargs, ): ``` This PR intends to keep the same logic as now and just use new interfaces so we can delete all the old files from old interfaces. The scope to whether or not we should have a single function or not is kept for #383 closes #343 closes #335 Co-Authored-By: Tatiana Al-Chueyr <tatiana.alchueyr@gmail.com> Co-Authored-By: Utkarsh Sharma <utkarsharma2@gmail.com>
kaxil
added a commit
that referenced
this issue
Jun 8, 2022
This PR refactors the Append operator to use the new interfaces. Breaking Changes: - Removed casting functionality - changed the interface from which uses `source_to_target_columns_map` instead of `columns`: ``` def append( self, main_table: Table, columns: List[str], casted_columns: dict, append_table: Table, ): ``` to ``` def append( source_table: Table, target_table: Table, source_to_target_columns_map: Optional[Dict[str, str]] = None, **kwargs, ): ``` This PR intends to keep the same logic as now and just use new interfaces so we can delete all the old files from old interfaces. The scope to whether or not we should have a single function or not is kept for #383 closes #343 closes #335 Co-Authored-By: Tatiana Al-Chueyr <tatiana.alchueyr@gmail.com> Co-Authored-By: Utkarsh Sharma <utkarsharma2@gmail.com>
kaxil
added a commit
that referenced
this issue
Jun 8, 2022
This PR refactors the Append operator to use the new interfaces. Breaking Changes: - Removed casting functionality - changed the interface from which uses `source_to_target_columns_map` instead of `columns`: ``` def append( self, main_table: Table, columns: List[str], casted_columns: dict, append_table: Table, ): ``` to ``` def append( source_table: Table, target_table: Table, source_to_target_columns_map: Optional[Dict[str, str]] = None, **kwargs, ): ``` This PR intends to keep the same logic as now and just use new interfaces so we can delete all the old files from old interfaces. The scope to whether or not we should have a single function or not is kept for #383 closes #343 closes #335 Co-Authored-By: Utkarsh Sharma <utkarsharma2@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the context
This task is part of the Astro Python SDK refactor.
Dependencies
BaseDatabase
andSqliteDatabase
#340Acceptance criteria
append
operator using the newDatabase
class and using thecreate_database(conn_id)
function. It should contain both the behavior of the previously existingmerge
andappend
.The text was updated successfully, but these errors were encountered: