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

Feature/hgi 6721 #4

Open
wants to merge 2 commits into
base: feature/hgi-5947
Choose a base branch
from
Open

Conversation

butkeraites-hotglue
Copy link

No description provided.

- Introduced a method to create temporary tables in Snowflake, allowing for better handling of dynamic queries.
- Updated `get_table_columns` and `discover_catalog` functions to utilize the new temporary table creation method.
- Enhanced type hinting for function parameters to improve code clarity.
- Removed hardcoded SQL queries in favor of a dedicated method for fetching data types.
- Added logic to drop temporary tables after use to prevent clutter in the database.
- Adjusted logging and error handling for improved debugging.

This refactor aims to streamline the interaction with Snowflake and enhance the overall maintainability of the codebase.
- Updated `discover_catalog` to accept a new parameter for controlling query result limits, enhancing flexibility.
- Replaced the temporary table creation method with a more versatile `create_table` method that allows for optional query limits.
- Adjusted the handling of temporary tables to ensure they are dropped after use, maintaining a clean database state.
- Modified related functions (`do_discover`, `get_streams`, and `do_sync`) to accommodate changes in the catalog discovery process and temporary table management.

These changes improve the efficiency and clarity of the Snowflake integration, ensuring better resource management and code maintainability.
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.

1 participant