Skip to content

impl(bq_driver): Migration sripts#1315

Open
Khushikathuria008 wants to merge 6 commits into
mainfrom
migration
Open

impl(bq_driver): Migration sripts#1315
Khushikathuria008 wants to merge 6 commits into
mainfrom
migration

Conversation

@Khushikathuria008
Copy link
Copy Markdown
Collaborator

No description provided.

@sachinpro
Copy link
Copy Markdown
Collaborator

The scripts should copy/replace the only DSN if a single DSN was present. In case of multiple, we should prompt the user to choose one.

@Khushikathuria008
Copy link
Copy Markdown
Collaborator Author

The scripts should copy/replace the only DSN if a single DSN was present. In case of multiple, we should prompt the user to choose one.

done

Comment thread ci/migration/migrate_dsn.sh Outdated

# Migration script for Linux/MacOS ODBC DSNs
# - Migrates from "Simba Google BigQuery ODBC Connector"
# - to "Google ODBC Driver for Google BigQuery"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please change the name of the driver here and elsewhere to "ODBC Driver for BigQuery"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Collaborator

@shivamd-gpartner shivamd-gpartner left a comment

Choose a reason for hiding this comment

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

Looks fine for now

@shivamd-gpartner shivamd-gpartner marked this pull request as ready for review December 15, 2025 06:54
@shivamd-gpartner shivamd-gpartner requested a review from a team December 15, 2025 06:54
@@ -0,0 +1,225 @@
# !/usr/bin/env powershell
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please attach a readme mentioning the behaviour of these scripts and the usage in detail. For e.g., explain when will it ask for DSN name to be copied or replaced.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

Comment thread ci/migration/README.md
| Copy mode | `<DSN>_Google` | `<DSN>_google` |
| Replace mode | In‑place | In‑place |
| Multi‑DSN prompt | Yes | Yes |
| Backup created | Implicit (registry) | Explicit `.bak.<timestamp>` |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

.<timestamp> seems like a weird extension. Can we keep the same extension and just add _bak_<timestamp> to the filename?

Comment thread ci/migration/README.md
| Windows | Registry (ODBC.INI, ODBCINST.INI) |
| Linux/macOS | `odbc.ini` |

All scripts create backups before modifying configuration.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The backup should only be created when the copy option is selected. In case of replace, we can replace the particular DSN section in the ini file(s).

@sachinpro
Copy link
Copy Markdown
Collaborator

sachinpro commented Jan 21, 2026

@Khushikathuria008 How have we verified these scripts?

Copy link
Copy Markdown
Collaborator

@sachinpro sachinpro left a comment

Choose a reason for hiding this comment

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

As discussed, @shivamd-gpartner, lets find a smart way to modify the existing integration test pipelines to migrate the Existing Driver DSN to ours using these scripts.

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.

5 participants