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

Fixed guess_external_locations failure with AttributeError: as_dict and added an integration test #259

Merged
merged 3 commits into from
Sep 21, 2023

Conversation

FastLee
Copy link
Contributor

@FastLee FastLee commented Sep 21, 2023

Created unit testing
Still seeing weird behavior of the Row class.
Possibly related to Python version.

Fix #256

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #259 (85b05c4) into main (6d30d12) will increase coverage by 0.68%.
Report is 1 commits behind head on main.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##             main     #259      +/-   ##
==========================================
+ Coverage   82.64%   83.33%   +0.68%     
==========================================
  Files          30       29       -1     
  Lines        2011     1974      -37     
  Branches      344      337       -7     
==========================================
- Hits         1662     1645      -17     
+ Misses        280      261      -19     
+ Partials       69       68       -1     
Files Changed Coverage Δ
src/databricks/labs/ucx/runtime.py 53.73% <20.00%> (-0.82%) ⬇️
...databricks/labs/ucx/hive_metastore/data_objects.py 80.85% <75.00%> (+0.41%) ⬆️
src/databricks/labs/ucx/hive_metastore/tables.py 94.66% <92.30%> (-1.34%) ⬇️
src/databricks/labs/ucx/assessment/crawlers.py 67.82% <100.00%> (-0.28%) ⬇️
src/databricks/labs/ucx/config.py 84.61% <100.00%> (+3.48%) ⬆️
src/databricks/labs/ucx/hive_metastore/__init__.py 100.00% <100.00%> (ø)
src/databricks/labs/ucx/hive_metastore/grants.py 100.00% <100.00%> (ø)
src/databricks/labs/ucx/install.py 82.05% <100.00%> (ø)

@@ -0,0 +1,30 @@
import logging
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this file is in assessment folder? it has to be in hive_metastore. please fix.

@nfx nfx changed the title Addressing #256 with testing Fixed guess_external_locations failure with AttributeError: as_dict and added an integration test Sep 21, 2023
@nfx nfx enabled auto-merge September 21, 2023 19:03
@nfx nfx added this pull request to the merge queue Sep 21, 2023
Merged via the queue into main with commit c5e20d9 Sep 21, 2023
@nfx nfx mentioned this pull request Sep 21, 2023
nfx added a commit that referenced this pull request Sep 21, 2023
* Added batched iteration for `INSERT INTO` queries in
`StatementExecutionBackend` with default `max_records_per_batch=1000`
([#237](#237)).
* Added crawler for mount points
([#209](#209)).
* Added crawlers for compatibility of jobs and clusters, along with
basic recommendations for external locations
([#244](#244)).
* Added safe return on grants
([#246](#246)).
* Added ability to specify empty group filter in the installer script
([#216](#216))
([#217](#217)).
* Added ability to install application by multiple different users on
the same workspace ([#235](#235)).
* Added dashboard creation on installation and a requirement for
`warehouse_id` in config, so that the assessment dashboards are
refreshed automatically after job runs
([#214](#214)).
* Added reliance on rate limiting from Databricks SDK for listing
workspace ([#258](#258)).
* Fixed errors in corner cases where Azure Service Principal Credentials
were not available in Spark context
([#254](#254)).
* Fixed `DESCRIBE TABLE` throwing errors when listing Legacy Table ACLs
([#238](#238)).
* Fixed `file already exists` error in the installer script
([#219](#219))
([#222](#222)).
* Fixed `guess_external_locations` failure with `AttributeError:
as_dict` and added an integration test
([#259](#259)).
* Fixed error handling edge cases in `crawl_tables` task
([#243](#243))
([#251](#251)).
* Fixed `crawl_permissions` task failure on folder names containing a
forward slash ([#234](#234)).
* Improved `README` notebook documentation
([#260](#260),
[#228](#228),
[#252](#252),
[#223](#223),
[#225](#225)).
* Removed redundant `.python-version` file
([#221](#221)).
* Removed discovery of account groups from `crawl_permissions` task
([#240](#240)).
* Updated databricks-sdk requirement from ~=0.8.0 to ~=0.9.0
([#245](#245)).
@nfx nfx deleted the fix/external_location_fix#256 branch September 21, 2023 20:57
larsgeorge-db pushed a commit that referenced this pull request Sep 23, 2023
…t` and added an integration test (#259)

Created unit testing
Still seeing weird behavior of the Row class.
Possibly related to Python version.

Fix #256

---------

Co-authored-by: Serge Smertin <[email protected]>
larsgeorge-db pushed a commit that referenced this pull request Sep 23, 2023
* Added batched iteration for `INSERT INTO` queries in
`StatementExecutionBackend` with default `max_records_per_batch=1000`
([#237](#237)).
* Added crawler for mount points
([#209](#209)).
* Added crawlers for compatibility of jobs and clusters, along with
basic recommendations for external locations
([#244](#244)).
* Added safe return on grants
([#246](#246)).
* Added ability to specify empty group filter in the installer script
([#216](#216))
([#217](#217)).
* Added ability to install application by multiple different users on
the same workspace ([#235](#235)).
* Added dashboard creation on installation and a requirement for
`warehouse_id` in config, so that the assessment dashboards are
refreshed automatically after job runs
([#214](#214)).
* Added reliance on rate limiting from Databricks SDK for listing
workspace ([#258](#258)).
* Fixed errors in corner cases where Azure Service Principal Credentials
were not available in Spark context
([#254](#254)).
* Fixed `DESCRIBE TABLE` throwing errors when listing Legacy Table ACLs
([#238](#238)).
* Fixed `file already exists` error in the installer script
([#219](#219))
([#222](#222)).
* Fixed `guess_external_locations` failure with `AttributeError:
as_dict` and added an integration test
([#259](#259)).
* Fixed error handling edge cases in `crawl_tables` task
([#243](#243))
([#251](#251)).
* Fixed `crawl_permissions` task failure on folder names containing a
forward slash ([#234](#234)).
* Improved `README` notebook documentation
([#260](#260),
[#228](#228),
[#252](#252),
[#223](#223),
[#225](#225)).
* Removed redundant `.python-version` file
([#221](#221)).
* Removed discovery of account groups from `crawl_permissions` task
([#240](#240)).
* Updated databricks-sdk requirement from ~=0.8.0 to ~=0.9.0
([#245](#245)).
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.

guess_external_locations fails with AttributeError: as_dict
2 participants