Skip to content

Pin'ed version databricks-sdk == 0.17.0 has python 3.12 syntax warning #928

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

Open
diwu-sf opened this issue Feb 4, 2025 · 2 comments
Open
Labels
bug Something isn't working

Comments

@diwu-sf
Copy link

diwu-sf commented Feb 4, 2025

When runnning Python 3.12, install:

  • dbt-core 1.9.2
  • dbt-databricks 1.9.4

Running dbt --version will reveal syntax warnings about invalid escape sequences in the databricks sdk 0.17.0:

>>>  dbt --version
...python3.12/site-packages/databricks/sdk/service/jobs.py:60:
SyntaxWarning: invalid escape sequence '\.'
  """The sequence number of this run attempt for a triggered job run. The initial attempt of a run
...python3.12/site-packages/databricks/sdk/service/jobs.py:2304:
SyntaxWarning: invalid escape sequence '\.'
  """The sequence number of this run attempt for a triggered job run. The initial attempt of a run
...python3.12/site-packages/databricks/sdk/service/jobs.py:3011:
SyntaxWarning: invalid escape sequence '\.'
  """The sequence number of this run attempt for a triggered job run. The initial attempt of a run
WARNING:thrift.transport.sslcompat:using legacy validation callback
...python3.12/site-packages/pydantic/_internal/_config.py:341:
UserWarning: Valid config keys have changed in V2:
* 'allow_population_by_field_name' has been renamed to 'populate_by_name'
  warnings.warn(message, UserWarning)
Core:
  - installed: 1.9.2
  - latest:    1.9.2 - Up to date!

Plugins:
  - databricks: 1.9.4 - Up to date!

This has been resolved in newer versions of databricks python sdk:
databricks/databricks-sdk-py#508

Please update the version of databricks sdk that this adapter uses.

@diwu-sf diwu-sf added the bug Something isn't working label Feb 4, 2025
@benc-db
Copy link
Collaborator

benc-db commented Feb 4, 2025

Update will come in 1.10.0; thanks for reporting.

@benc-db
Copy link
Collaborator

benc-db commented Mar 17, 2025

Should be fixed in alpha. If you'd like to validate, please see #963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants