Skip to content

Fix 'Builder' object has no attribute 'sdk_config' error#86

Merged
nfx merged 1 commit intodatabrickslabs:mainfrom
bishwajit-db:bugfix/no-attribute-sdk_config
Apr 1, 2024
Merged

Fix 'Builder' object has no attribute 'sdk_config' error#86
nfx merged 1 commit intodatabrickslabs:mainfrom
bishwajit-db:bugfix/no-attribute-sdk_config

Conversation

@bishwajit-db
Copy link
Copy Markdown
Contributor

Fix 'Builder' object has no attribute 'sdk_config' error.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 84.58%. Comparing base (5a2bafe) to head (3e76d8c).
Report is 4 commits behind head on main.

Files Patch % Lines
src/databricks/labs/lsql/backends.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #86   +/-   ##
=======================================
  Coverage   84.58%   84.58%           
=======================================
  Files           7        7           
  Lines         532      532           
  Branches      105      105           
=======================================
  Hits          450      450           
  Misses         50       50           
  Partials       32       32           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Collaborator

@sundarshankar89 sundarshankar89 left a comment

Choose a reason for hiding this comment

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

LGTM

@nfx nfx merged commit 12f6d34 into databrickslabs:main Apr 1, 2024
@bishwajit-db bishwajit-db deleted the bugfix/no-attribute-sdk_config branch April 1, 2024 14:58
nfx added a commit that referenced this pull request Apr 2, 2024
* Check UCX and LSQL for backwards compatibility ([#78](#78)). In this release, we introduce a new GitHub Actions workflow, downstreams.yml, which automates unit testing for downstream projects upon changes made to the upstream project. The workflow runs on pull requests, merge groups, and pushes to the main branch and sets permissions for id-token, contents, and pull-requests. It includes a compatibility job that runs on Ubuntu, checks out the code, sets up Python, installs the toolchain, and accepts downstream projects using the databrickslabs/sandbox/downstreams action. The job matrix includes two downstream projects, ucx and remorph, and uses the build cache to speed up the pip install step. This feature ensures that changes to the upstream project do not break compatibility with downstream projects, maintaining a stable and reliable library for software engineers.
* Fixed `Builder` object has no attribute `sdk_config` error ([#86](#86)). In this release, we've resolved a `Builder` object has no attribute `sdk_config` error that occurred when initializing a Spark session using the `DatabricksSession.builder` method. The issue was caused by using dot notation to access the `sdk_config` attribute, which is incorrect. This has been updated to the correct syntax of `sdkConfig`. This change enables successful creation of the Spark session, preventing the error from recurring. The `DatabricksSession` class and its methods, such as `getOrCreate`, continue to be used for interacting with Databricks clusters and workspaces, while the `WorkspaceClient` class manages Databricks resources within a workspace.

Dependency updates:

 * Bump codecov/codecov-action from 1 to 4 ([#84](#84)).
 * Bump actions/setup-python from 4 to 5 ([#83](#83)).
 * Bump actions/checkout from 2.5.0 to 4.1.2 ([#81](#81)).
 * Bump softprops/action-gh-release from 1 to 2 ([#80](#80)).
@nfx nfx mentioned this pull request Apr 2, 2024
nfx added a commit that referenced this pull request Apr 2, 2024
* Check UCX and LSQL for backwards compatibility
([#78](#78)). In this
release, we introduce a new GitHub Actions workflow, downstreams.yml,
which automates unit testing for downstream projects upon changes made
to the upstream project. The workflow runs on pull requests, merge
groups, and pushes to the main branch and sets permissions for id-token,
contents, and pull-requests. It includes a compatibility job that runs
on Ubuntu, checks out the code, sets up Python, installs the toolchain,
and accepts downstream projects using the
databrickslabs/sandbox/downstreams action. The job matrix includes two
downstream projects, ucx and remorph, and uses the build cache to speed
up the pip install step. This feature ensures that changes to the
upstream project do not break compatibility with downstream projects,
maintaining a stable and reliable library for software engineers.
* Fixed `Builder` object has no attribute `sdk_config` error
([#86](#86)). In this
release, we've resolved a `Builder` object has no attribute `sdk_config`
error that occurred when initializing a Spark session using the
`DatabricksSession.builder` method. The issue was caused by using dot
notation to access the `sdk_config` attribute, which is incorrect. This
has been updated to the correct syntax of `sdkConfig`. This change
enables successful creation of the Spark session, preventing the error
from recurring. The `DatabricksSession` class and its methods, such as
`getOrCreate`, continue to be used for interacting with Databricks
clusters and workspaces, while the `WorkspaceClient` class manages
Databricks resources within a workspace.

Dependency updates:

* Bump codecov/codecov-action from 1 to 4
([#84](#84)).
* Bump actions/setup-python from 4 to 5
([#83](#83)).
* Bump actions/checkout from 2.5.0 to 4.1.2
([#81](#81)).
* Bump softprops/action-gh-release from 1 to 2
([#80](#80)).
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.

3 participants