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

Changes and bug fixes to support shared clusters in DBR 14.2 #248

Merged
merged 64 commits into from
Feb 22, 2024

Conversation

ronanstokes-db
Copy link
Contributor

Proposed changes

When using a shared cluster with UC shared mode in DBR 14.2, referencing the sparkContext produces an attribute error.
To fix this, if an error is thrown when accessing the sparkContext, we use a default parallelism of 200 unless an alternative
value was explicitly specified.

This PR also uses the Spark SQL function element_at rather than direct array indexing due to incompatibilities with some spark versions.

Types of changes

What types of changes does your code introduce to dbldatagen?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Change to tutorials, tests or examples
  • Non code change (readme, images or other non-code assets)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.

  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules
  • Submission does not reduce code coverage numbers
  • Submission does not increase alerts or messages from prospector / lint

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you
did and what alternatives you considered, etc...

@ronanstokes-db ronanstokes-db requested a review from a team as a code owner December 18, 2023 08:46
@ronanstokes-db ronanstokes-db removed the request for review from a team December 18, 2023 08:46
ronanstokes-db and others added 26 commits February 16, 2024 17:08
* wip

* prep for release

* prep for release

* wip
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
* wip

* hotfix release for logger fixes

* fix for root logger configuration
* wip

* wip

* wip
* wip

* wip

* wip

* wip

* wip
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* updated build version

* updated build version
* wip

* wip

* wip

* updated running of prospector
* wip

* wip

* updates to handle changes in upstream pipenv package

* updated build version
* wip

* wip

* added support for inferred types

* added support for inferred types

* wip

* wip

* wip

* updates and fixes to unit tests

* wip

* updated pipfile due to upstream changes in pipenv

* additional tests

* wip

* wip

* wip

* wip

* removed old code
* wip

* wip

* doc updates

* function doc changes only

* function doc changes only
…log releases (#236)

* wip

* wip

* changes for release

* example notebook

* updated readme to note compatible unity catalog runtimes

* updated readme to note compatible unity catalog runtimes

* updated readme to note compatible unity catalog runtimes

* updated readme to note compatible unity catalog runtimes
@GeekSheikh
Copy link

It's working for me. We're testing it a little deeper but looks good. Please don't forget to bump the version.

Copy link

@GeekSheikh GeekSheikh left a comment

Choose a reason for hiding this comment

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

please don't forget to bump the version but looks to be working on 14.3 LTS.

@ronanstokes-db ronanstokes-db merged commit b0d23e9 into master Feb 22, 2024
5 checks passed
@ronanstokes-db ronanstokes-db deleted the feature_shared_support branch May 24, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants