semantic-link-labs 0.9.1__py3-none-any.whl → 0.9.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of semantic-link-labs might be problematic. Click here for more details.
- {semantic_link_labs-0.9.1.dist-info → semantic_link_labs-0.9.3.dist-info}/METADATA +67 -8
- {semantic_link_labs-0.9.1.dist-info → semantic_link_labs-0.9.3.dist-info}/RECORD +87 -80
- sempy_labs/__init__.py +14 -12
- sempy_labs/_ai.py +8 -5
- sempy_labs/_capacities.py +120 -142
- sempy_labs/_capacity_migration.py +61 -94
- sempy_labs/_clear_cache.py +9 -8
- sempy_labs/_connections.py +107 -104
- sempy_labs/_data_pipelines.py +47 -49
- sempy_labs/_dataflows.py +45 -51
- sempy_labs/_dax.py +228 -6
- sempy_labs/_delta_analyzer.py +321 -0
- sempy_labs/_deployment_pipelines.py +72 -66
- sempy_labs/_environments.py +39 -36
- sempy_labs/_eventhouses.py +35 -35
- sempy_labs/_eventstreams.py +38 -39
- sempy_labs/_external_data_shares.py +29 -42
- sempy_labs/_gateways.py +103 -99
- sempy_labs/_generate_semantic_model.py +22 -30
- sempy_labs/_git.py +46 -66
- sempy_labs/_graphQL.py +95 -0
- sempy_labs/_helper_functions.py +227 -36
- sempy_labs/_job_scheduler.py +47 -59
- sempy_labs/_kql_databases.py +27 -34
- sempy_labs/_kql_querysets.py +23 -30
- sempy_labs/_list_functions.py +264 -167
- sempy_labs/_managed_private_endpoints.py +52 -47
- sempy_labs/_mirrored_databases.py +110 -134
- sempy_labs/_mirrored_warehouses.py +13 -13
- sempy_labs/_ml_experiments.py +36 -36
- sempy_labs/_ml_models.py +37 -38
- sempy_labs/_model_bpa.py +2 -2
- sempy_labs/_model_bpa_rules.py +8 -6
- sempy_labs/_model_dependencies.py +2 -0
- sempy_labs/_notebooks.py +28 -29
- sempy_labs/_one_lake_integration.py +2 -0
- sempy_labs/_query_scale_out.py +63 -81
- sempy_labs/_refresh_semantic_model.py +12 -14
- sempy_labs/_spark.py +54 -79
- sempy_labs/_sql.py +7 -11
- sempy_labs/_translations.py +2 -2
- sempy_labs/_vertipaq.py +11 -6
- sempy_labs/_warehouses.py +30 -33
- sempy_labs/_workloads.py +15 -20
- sempy_labs/_workspace_identity.py +13 -17
- sempy_labs/_workspaces.py +49 -48
- sempy_labs/admin/__init__.py +2 -0
- sempy_labs/admin/_basic_functions.py +244 -281
- sempy_labs/admin/_domains.py +186 -103
- sempy_labs/admin/_external_data_share.py +26 -31
- sempy_labs/admin/_git.py +17 -22
- sempy_labs/admin/_items.py +34 -48
- sempy_labs/admin/_scanner.py +61 -49
- sempy_labs/directlake/_directlake_schema_compare.py +2 -0
- sempy_labs/directlake/_dl_helper.py +10 -11
- sempy_labs/directlake/_generate_shared_expression.py +4 -5
- sempy_labs/directlake/_get_directlake_lakehouse.py +1 -0
- sempy_labs/directlake/_list_directlake_model_calc_tables.py +1 -0
- sempy_labs/directlake/_show_unsupported_directlake_objects.py +2 -0
- sempy_labs/directlake/_warm_cache.py +2 -0
- sempy_labs/graph/__init__.py +33 -0
- sempy_labs/graph/_groups.py +402 -0
- sempy_labs/graph/_teams.py +113 -0
- sempy_labs/graph/_users.py +191 -0
- sempy_labs/lakehouse/__init__.py +4 -0
- sempy_labs/lakehouse/_get_lakehouse_columns.py +12 -12
- sempy_labs/lakehouse/_get_lakehouse_tables.py +16 -22
- sempy_labs/lakehouse/_lakehouse.py +104 -7
- sempy_labs/lakehouse/_shortcuts.py +42 -20
- sempy_labs/migration/__init__.py +4 -0
- sempy_labs/migration/_direct_lake_to_import.py +66 -0
- sempy_labs/migration/_migrate_calctables_to_lakehouse.py +3 -2
- sempy_labs/migration/_migrate_calctables_to_semantic_model.py +1 -0
- sempy_labs/migration/_migrate_model_objects_to_semantic_model.py +1 -0
- sempy_labs/migration/_migrate_tables_columns_to_semantic_model.py +2 -0
- sempy_labs/migration/_refresh_calc_tables.py +2 -2
- sempy_labs/report/_download_report.py +8 -13
- sempy_labs/report/_generate_report.py +49 -46
- sempy_labs/report/_paginated.py +20 -26
- sempy_labs/report/_report_functions.py +52 -47
- sempy_labs/report/_report_list_functions.py +2 -0
- sempy_labs/report/_report_rebind.py +6 -10
- sempy_labs/report/_reportwrapper.py +187 -220
- sempy_labs/tom/_model.py +12 -6
- {semantic_link_labs-0.9.1.dist-info → semantic_link_labs-0.9.3.dist-info}/LICENSE +0 -0
- {semantic_link_labs-0.9.1.dist-info → semantic_link_labs-0.9.3.dist-info}/WHEEL +0 -0
- {semantic_link_labs-0.9.1.dist-info → semantic_link_labs-0.9.3.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: semantic-link-labs
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.3
|
|
4
4
|
Summary: Semantic Link Labs for Microsoft Fabric
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License: MIT License
|
|
@@ -26,7 +26,7 @@ Requires-Dist: pytest>=8.2.1; extra == "test"
|
|
|
26
26
|
# Semantic Link Labs
|
|
27
27
|
|
|
28
28
|
[](https://badge.fury.io/py/semantic-link-labs)
|
|
29
|
-
[](https://readthedocs.org/projects/semantic-link-labs/)
|
|
30
30
|
[](https://github.com/psf/black)
|
|
31
31
|
[](https://pepy.tech/project/semantic-link-labs)
|
|
32
32
|
|
|
@@ -64,6 +64,8 @@ Check out the video below for an introduction to Semantic Link, Semantic Link La
|
|
|
64
64
|
* [Check why a Direct Lake semantic model would fallback to DirectQuery](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.directlake.html#sempy_labs.directlake.check_fallback_reason)
|
|
65
65
|
* [View a measure dependency tree](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.html#sempy_labs.measure_dependency_tree)
|
|
66
66
|
* [View unique columns touched in a single (or multiple) DAX query(ies)](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.html#sempy_labs.get_dax_query_dependencies)
|
|
67
|
+
* [Analyze delta tables for Direct Lake semantic models using Delta Analyzer](https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Delta%20Analyzer.ipynb)
|
|
68
|
+
* [View synonyms from the linguistic schema](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.html#sempy_labs.list_synonyms)
|
|
67
69
|
* Reports
|
|
68
70
|
* [Report Best Practice Analyzer (BPA)](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.report.html#sempy_labs.report.run_report_bpa)
|
|
69
71
|
* [View report metadata](https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Report%20Analysis.ipynb)
|
|
@@ -80,10 +82,11 @@ Check out the video below for an introduction to Semantic Link, Semantic Link La
|
|
|
80
82
|
* [Optimize lakehouse tables](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.lakehouse.html#sempy_labs.lakehouse.optimize_lakehouse_tables)
|
|
81
83
|
* [Vacuum lakehouse tables](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.lakehouse.html#sempy_labs.lakehouse.vacuum_lakehouse_tables)
|
|
82
84
|
* [Create](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.lakehouse.html#sempy_labs.lakehouse.create_shortcut_onelake), [delete](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.lakehouse.html#sempy_labs.lakehouse.delete_shortcut), and [view shortcuts](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.html#sempy_labs.list_shortcuts)
|
|
85
|
+
* [Analyze delta tables for Direct Lake semantic models using Delta Analyzer](https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Delta%20Analyzer.ipynb)
|
|
83
86
|
* Notebooks
|
|
84
87
|
* [Import a notebook from the web](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.html#sempy_labs.import_notebook_from_web)
|
|
85
88
|
* APIs
|
|
86
|
-
* Wrapper functions for [Power BI](https://learn.microsoft.com/rest/api/power-bi/), [Fabric](https://learn.microsoft.com/rest/api/fabric/articles/using-fabric-apis),
|
|
89
|
+
* Wrapper functions for [Power BI](https://learn.microsoft.com/rest/api/power-bi/), [Fabric](https://learn.microsoft.com/rest/api/fabric/articles/using-fabric-apis), [Azure](https://learn.microsoft.com/rest/api/microsoftfabric/fabric-capacities?view=rest-microsoftfabric-2023-11-01), and [Microsoft Graph](https://learn.microsoft.com/graph/api/overview?view=graph-rest-1.0) APIs
|
|
87
90
|
* Service Principal Authentication
|
|
88
91
|
* Now supported using the [service_principal_authentication](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.html#sempy_labs.service_principal_authentication) context manager for the [admin](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.admin.html) subpackage, Azure API wrapper functions, and [connect_semantic_model](https://semantic-link-labs.readthedocs.io/en/stable/sempy_labs.tom.html#sempy_labs.tom.connect_semantic_model). See this [helper notebook](https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Service%20Principal.ipynb) for additional instructions.
|
|
89
92
|
|
|
@@ -113,13 +116,11 @@ for file_name, file_url in notebook_files.items():
|
|
|
113
116
|
## Once installed, run this code to import the library into your notebook
|
|
114
117
|
```python
|
|
115
118
|
import sempy_labs as labs
|
|
116
|
-
from sempy_labs import migration, directlake, admin
|
|
119
|
+
from sempy_labs import migration, directlake, admin, graph
|
|
117
120
|
from sempy_labs import lakehouse as lake
|
|
118
121
|
from sempy_labs import report as rep
|
|
119
122
|
from sempy_labs.tom import connect_semantic_model
|
|
120
123
|
from sempy_labs.report import ReportWrapper
|
|
121
|
-
from sempy_labs import ConnectWarehouse
|
|
122
|
-
from sempy_labs import ConnectLakehouse
|
|
123
124
|
```
|
|
124
125
|
|
|
125
126
|
## Load Semantic Link Labs into a custom [Fabric environment](https://learn.microsoft.com/fabric/data-engineering/create-and-use-environment)
|
|
@@ -143,8 +144,10 @@ An even better way to ensure the semantic-link-labs library is available in your
|
|
|
143
144
|
2. Select your newly created environment within the 'Environment' drop down in the navigation bar at the top of the notebook
|
|
144
145
|
|
|
145
146
|
## Version History
|
|
146
|
-
* [0.9.
|
|
147
|
-
* [0.9.
|
|
147
|
+
* [0.9.3](https://github.com/microsoft/semantic-link-labs/releases/tag/0.9.3) (February 13, 2025)
|
|
148
|
+
* [0.9.2](https://github.com/microsoft/semantic-link-labs/releases/tag/0.9.2) (February 5, 2025)
|
|
149
|
+
* [0.9.1](https://github.com/microsoft/semantic-link-labs/releases/tag/0.9.1) (January 22, 2025)
|
|
150
|
+
* [0.9.0](https://github.com/microsoft/semantic-link-labs/releases/tag/0.9.0) (January 22, 2025)
|
|
148
151
|
* [0.8.11](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.11) (December 19, 2024)
|
|
149
152
|
* [0.8.10](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.10) (December 16, 2024)
|
|
150
153
|
* [0.8.9](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.9) (December 4, 2024)
|
|
@@ -238,6 +241,62 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
|
|
|
238
241
|
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
|
239
242
|
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
|
240
243
|
|
|
244
|
+
## How to Contribute
|
|
245
|
+
|
|
246
|
+
#### Initial setup
|
|
247
|
+
1. Fork the Semantic Link Labs GitHub repository (Fork -> Create a new fork).
|
|
248
|
+
2. Click on the green icon '<> Code' and copy the 'HTTPS' URL to the clipboard.
|
|
249
|
+
3. Open Visual Studio Code.
|
|
250
|
+
4. Select 'Clone Git Repository'.
|
|
251
|
+
5. Paste the URL copied in step 2.
|
|
252
|
+
6. Select 'Clone from URL'.
|
|
253
|
+
7. Select/create a folder to map the cloned repository to your computer.
|
|
254
|
+
8. When prompted to open the cloned repository, click 'Open'.
|
|
255
|
+
9. Open the integrated terminal (View -> Terminal).
|
|
256
|
+
10. Run the following code in the terminal to ensure a virtual environment exists.
|
|
257
|
+
```python
|
|
258
|
+
python -m venv venv
|
|
259
|
+
```
|
|
260
|
+
11. Run the following code in the terminal to activate the virtual environment.
|
|
261
|
+
```python
|
|
262
|
+
.\venv\Scripts\Activate.ps1
|
|
263
|
+
```
|
|
264
|
+
12. Run the following code in the terminal to install the build module.
|
|
265
|
+
```
|
|
266
|
+
pip install build
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
#### Branching
|
|
270
|
+
When making changes, always create a new branch.
|
|
271
|
+
|
|
272
|
+
1. Navigate to the Souce Control tab within Visual Studio Code.
|
|
273
|
+
2. Click on the Source Control icon at the bottom left corner of the screen.
|
|
274
|
+
3. Click 'Create new branch...'.
|
|
275
|
+
4. Enter the branch name (i.e. yourusername/branchname).
|
|
276
|
+
5. Click 'Enter'.
|
|
277
|
+
|
|
278
|
+
#### Building the .whl file
|
|
279
|
+
Running the following in the terminal in Visual Studio Code will create a .whl file in the 'dist' folder within your locally-cloned repository.
|
|
280
|
+
|
|
281
|
+
```cli
|
|
282
|
+
python -m build
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
#### Running and testing the .whl file
|
|
286
|
+
1. Open a notebook in a Fabric workspace.
|
|
287
|
+
2. Navigate to 'Resources' within the Explorer tab.
|
|
288
|
+
3. Upload the .whl file here.
|
|
289
|
+
4. Drag the .whl file into a notebook cell.
|
|
290
|
+
5. Run the %pip install command generated by step 4.
|
|
291
|
+
|
|
292
|
+
#### Submitting a Pull Request (PR)
|
|
293
|
+
1. Within the 'Source Control' tab, commit your changes to the branch.
|
|
294
|
+
2. Navigate to the [GitHub repo](https://github.com/microsoft/semantic-link-labs).
|
|
295
|
+
3. A 'Create pull request' will appear at the top of the screen in green. Click it.
|
|
296
|
+
4. Enter details into the description.
|
|
297
|
+
5. Click 'Create'.
|
|
298
|
+
|
|
299
|
+
|
|
241
300
|
## Trademarks
|
|
242
301
|
|
|
243
302
|
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
|
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
sempy_labs/__init__.py,sha256=
|
|
2
|
-
sempy_labs/_ai.py,sha256=
|
|
1
|
+
sempy_labs/__init__.py,sha256=l2Vnhvr_zSC9xnCQjuLdHCA2tBOj2pRTht1GPwmOvbo,13933
|
|
2
|
+
sempy_labs/_ai.py,sha256=rhVohfwrU1mvWH0EN_vCTnldb8xJNfGHZGba34k1JVw,16174
|
|
3
3
|
sempy_labs/_authentication.py,sha256=GjtN5XqIyWXbR5Ni4hfYiUNwgFa-ySX8e-BrqE1vgGc,6903
|
|
4
|
-
sempy_labs/_capacities.py,sha256=
|
|
5
|
-
sempy_labs/_capacity_migration.py,sha256=
|
|
6
|
-
sempy_labs/_clear_cache.py,sha256=
|
|
7
|
-
sempy_labs/_connections.py,sha256=
|
|
8
|
-
sempy_labs/_data_pipelines.py,sha256=
|
|
9
|
-
sempy_labs/_dataflows.py,sha256=
|
|
10
|
-
sempy_labs/_dax.py,sha256=
|
|
11
|
-
sempy_labs/
|
|
4
|
+
sempy_labs/_capacities.py,sha256=7rR4BL5XuWr5UO25jp8_5moymvX35AY_FG27H4HUcqQ,43949
|
|
5
|
+
sempy_labs/_capacity_migration.py,sha256=wzOD14W7lCTx539GvkBSROMnTHEYNeFkz4L4C-0CXOQ,24762
|
|
6
|
+
sempy_labs/_clear_cache.py,sha256=5z73I4Zdr3C0Bd4zyxrQdcGG2VOzsXWukzB_evm4bRs,12731
|
|
7
|
+
sempy_labs/_connections.py,sha256=aLMneYcw9on-GXr6KIGmDIvo8cuMevbkmtlmB3uWXhU,18693
|
|
8
|
+
sempy_labs/_data_pipelines.py,sha256=pL6hkYxHifZk6OCBt3MJm-eG2lK4iaYXs0FbbGGbXEc,5564
|
|
9
|
+
sempy_labs/_dataflows.py,sha256=SZThUDRQcWujK30nNw1YI06y1L6-piNHLiPBb72s9Bk,8049
|
|
10
|
+
sempy_labs/_dax.py,sha256=2FCN2SInk8E5LMNMO5fnrWhQ-gC9S-B4FG3bDYUk_Jk,16452
|
|
11
|
+
sempy_labs/_delta_analyzer.py,sha256=_o8DvD7wWxKTGpGEZ5F1mIM2yp28_-U0v0Y-eNPIHZ8,11608
|
|
12
|
+
sempy_labs/_deployment_pipelines.py,sha256=SDQYkCAhOAlxBr58jYxtLFOVySiRXO0_WhfOKGDeYZQ,6254
|
|
12
13
|
sempy_labs/_documentation.py,sha256=yVA8VPEzx_fmljtcvSxtB7-BeupYsfdMXXjp6Fpnyo8,5007
|
|
13
|
-
sempy_labs/_environments.py,sha256=
|
|
14
|
-
sempy_labs/_eventhouses.py,sha256=
|
|
15
|
-
sempy_labs/_eventstreams.py,sha256=
|
|
16
|
-
sempy_labs/_external_data_shares.py,sha256=
|
|
17
|
-
sempy_labs/_gateways.py,sha256=
|
|
18
|
-
sempy_labs/_generate_semantic_model.py,sha256=
|
|
19
|
-
sempy_labs/_git.py,sha256=
|
|
20
|
-
sempy_labs/
|
|
14
|
+
sempy_labs/_environments.py,sha256=F0lbOqkBGFINIB49C9M_bv-F3A5OtwyYbCFKdCHkkQc,5433
|
|
15
|
+
sempy_labs/_eventhouses.py,sha256=bxbcCIq0qH2_k5A1x7z-BDfzPMoE8f1sFm9SUIHJ9Go,3948
|
|
16
|
+
sempy_labs/_eventstreams.py,sha256=TY0HBWRjizonKr3g8doKrffvOqlGY4l1VomcBnUUh-g,3996
|
|
17
|
+
sempy_labs/_external_data_shares.py,sha256=MP0nx9uFzjiV04xpq09UAM8n_1ckPBae2uhI6Vk0ZoY,6537
|
|
18
|
+
sempy_labs/_gateways.py,sha256=tbSEOGCc-mnvAYTVwJeDv8nWZkokf_OUOGfh3z8ePbw,17495
|
|
19
|
+
sempy_labs/_generate_semantic_model.py,sha256=OtzWWJ1EeDCYfEKn5TKnAUfbXOvqNI3cNkoJow3KkmE,17865
|
|
20
|
+
sempy_labs/_git.py,sha256=lB0mJMGecvS1scPTbMolk0Tg_0skdbaj0-9W_2cA1K0,15014
|
|
21
|
+
sempy_labs/_graphQL.py,sha256=7zyXXzsA_l2NeumeSrg5J7JMAexHFzeKFr59XTJWfrk,2906
|
|
22
|
+
sempy_labs/_helper_functions.py,sha256=3v3pY9dLe8KBLXztaauzrsjXDvWJciF3C2It1pawX-M,47624
|
|
21
23
|
sempy_labs/_icons.py,sha256=ez2dx_LCti71S_-eB6WYQ-kOMyiBL8ZJN12-ev5dcmA,3579
|
|
22
|
-
sempy_labs/_job_scheduler.py,sha256=
|
|
23
|
-
sempy_labs/_kql_databases.py,sha256=
|
|
24
|
-
sempy_labs/_kql_querysets.py,sha256=
|
|
25
|
-
sempy_labs/_list_functions.py,sha256=
|
|
26
|
-
sempy_labs/_managed_private_endpoints.py,sha256=
|
|
27
|
-
sempy_labs/_mirrored_databases.py,sha256=
|
|
28
|
-
sempy_labs/_mirrored_warehouses.py,sha256=
|
|
29
|
-
sempy_labs/_ml_experiments.py,sha256=
|
|
30
|
-
sempy_labs/_ml_models.py,sha256=
|
|
24
|
+
sempy_labs/_job_scheduler.py,sha256=kVuBiUhzaNJJ7d_HiP3CNhMe3lHa6u87MyYAWslgghA,7522
|
|
25
|
+
sempy_labs/_kql_databases.py,sha256=ed5w9k9iACsy7hMr0pBQB3ETKW3rucVZuRc-FVb_ihY,4524
|
|
26
|
+
sempy_labs/_kql_querysets.py,sha256=7E9FpV_wlZ1F_S2GncAzRiHoryqDQFvZaRftde0_oKc,4036
|
|
27
|
+
sempy_labs/_list_functions.py,sha256=O6EDE8-MdPkkb6VWlN9gl4IxkT5s1oL5muggqd_0ZlY,66614
|
|
28
|
+
sempy_labs/_managed_private_endpoints.py,sha256=Po5ki9jQ5Wg3uxvHkAWuhtPHAkgOYspv19ZoAYzg9JM,6350
|
|
29
|
+
sempy_labs/_mirrored_databases.py,sha256=OrxHlMjahW0Bx5GfTwAHGxDO5hy-9Pt5e9N5HKiRjLo,14028
|
|
30
|
+
sempy_labs/_mirrored_warehouses.py,sha256=Q3WlRjUwCLz8KW1eN8MiTPeY0P52Vkuz5kgnv4GvQ3k,1739
|
|
31
|
+
sempy_labs/_ml_experiments.py,sha256=pTpc7vx5z7dvjaViB8DMbiIEN7thVO4cLhyUKP-RYpE,4057
|
|
32
|
+
sempy_labs/_ml_models.py,sha256=BGnYC0-K1cb9VikCmqods5bxckzYplkJkDO3jwttpqI,3924
|
|
31
33
|
sempy_labs/_model_auto_build.py,sha256=PTQo3dufzLSFcQ5shFkmBWAVSdP7cTJgpUclrcXyNbg,5105
|
|
32
|
-
sempy_labs/_model_bpa.py,sha256=
|
|
34
|
+
sempy_labs/_model_bpa.py,sha256=SWKVe5WwfmU7OZVyCbsUlK0w6VdJ08MLklQbPJ98Z64,21376
|
|
33
35
|
sempy_labs/_model_bpa_bulk.py,sha256=F_AzebdpMm7QvYuSuSj52NTg6jYE9H1FJJDpdnyNF-g,16039
|
|
34
|
-
sempy_labs/_model_bpa_rules.py,sha256=
|
|
35
|
-
sempy_labs/_model_dependencies.py,sha256=
|
|
36
|
-
sempy_labs/_notebooks.py,sha256=
|
|
37
|
-
sempy_labs/_one_lake_integration.py,sha256=
|
|
38
|
-
sempy_labs/_query_scale_out.py,sha256=
|
|
39
|
-
sempy_labs/_refresh_semantic_model.py,sha256=
|
|
40
|
-
sempy_labs/_spark.py,sha256=
|
|
41
|
-
sempy_labs/_sql.py,sha256
|
|
42
|
-
sempy_labs/_translations.py,sha256=
|
|
43
|
-
sempy_labs/_vertipaq.py,sha256=
|
|
44
|
-
sempy_labs/_warehouses.py,sha256=
|
|
45
|
-
sempy_labs/_workloads.py,sha256=
|
|
46
|
-
sempy_labs/_workspace_identity.py,sha256=
|
|
47
|
-
sempy_labs/_workspaces.py,sha256=
|
|
36
|
+
sempy_labs/_model_bpa_rules.py,sha256=L1xu5T5LsTxsk-KyrCB561BKzgAkj7izDbSiyMA6upY,45651
|
|
37
|
+
sempy_labs/_model_dependencies.py,sha256=0xGgubrq76zIvBdEqmEX_Pd6WdizXFVECBW6BPl2DZo,13162
|
|
38
|
+
sempy_labs/_notebooks.py,sha256=Ev8E4kxJHAnpqUacBxmov227pZH54CwbCP-C6OpjWD0,8458
|
|
39
|
+
sempy_labs/_one_lake_integration.py,sha256=3RYJ6det_oM3NcAqwrONATTggkNAXRZFvVbrOA1Pg94,6274
|
|
40
|
+
sempy_labs/_query_scale_out.py,sha256=nra1q8s-PKpZTlI_L0lMGO1GmdBk6sqETsBQShF1yPY,15352
|
|
41
|
+
sempy_labs/_refresh_semantic_model.py,sha256=4w_uaYLbaZptmEFY7QHWzOgXcgc2ctGx8HQvt2aguxk,17360
|
|
42
|
+
sempy_labs/_spark.py,sha256=SuSTjjmtzj7suDgN8Njk_pNBaStDLgIJB_1yk_e2H1Y,19340
|
|
43
|
+
sempy_labs/_sql.py,sha256=cXPjmb3OiOucdWi8QU73lPUiNnZ3LOeoBpoaRwjj1l4,5337
|
|
44
|
+
sempy_labs/_translations.py,sha256=i4K2PFk6-TcmAnUpqz-z_GuDv9XEp1cBs0KY-x6ja1w,16168
|
|
45
|
+
sempy_labs/_vertipaq.py,sha256=xssYOQeVsEbptzWZAfhIuVb4n9WQKn64F329ONal1FI,38052
|
|
46
|
+
sempy_labs/_warehouses.py,sha256=EKUrgPXmQEvdZxY84CazKdbz6Sd8vqaV7sq7UF4odl0,7302
|
|
47
|
+
sempy_labs/_workloads.py,sha256=uuTl-_7D_nubwCY5xrTfWF1apTpFbgRKwdY0oNFPDSk,4216
|
|
48
|
+
sempy_labs/_workspace_identity.py,sha256=ZtaaYyFUmRabdxCYw9xoUNRwKvXi1YibryI9Ww9MzxU,2155
|
|
49
|
+
sempy_labs/_workspaces.py,sha256=_4cwd5lg4JMEGuHaKyLHo7JQGJDb3v93eOO3Q8RYo44,11004
|
|
48
50
|
sempy_labs/_bpa_translation/_model/_translations_am-ET.po,sha256=zQVjJ-t0vtgIYan-HaXtUVJLB_PJvB53Nf5BNoOReU4,39199
|
|
49
51
|
sempy_labs/_bpa_translation/_model/_translations_ar-AE.po,sha256=QP1PjDLFccLDs9zq456crdAST57wrcWVk5rRiqqoCws,36959
|
|
50
52
|
sempy_labs/_bpa_translation/_model/_translations_bg-BG.po,sha256=sqezjpS3wfk09WD7x27bHoCBtgmqeHtyHNKTwG7-bkI,44132
|
|
@@ -83,51 +85,56 @@ sempy_labs/_bpa_translation/_model/_translations_tr-TR.po,sha256=NdW-X4E0QmeLKM0
|
|
|
83
85
|
sempy_labs/_bpa_translation/_model/_translations_uk-UA.po,sha256=3NsFN8hoor_5L6738FjpJ8o4spwp8FNFGbVItHD-_ec,43500
|
|
84
86
|
sempy_labs/_bpa_translation/_model/_translations_zh-CN.po,sha256=ipMbnet7ZI5mZoC8KonYKVwGmFLHFB_9KIDOoBgSNfo,26815
|
|
85
87
|
sempy_labs/_bpa_translation/_model/_translations_zu-ZA.po,sha256=5v6tVKGruqneAeMoa6F3tyg_JBL8qOpqOJofWpq2W3U,31518
|
|
86
|
-
sempy_labs/admin/__init__.py,sha256=
|
|
87
|
-
sempy_labs/admin/_basic_functions.py,sha256=
|
|
88
|
-
sempy_labs/admin/_domains.py,sha256=
|
|
89
|
-
sempy_labs/admin/_external_data_share.py,sha256=
|
|
90
|
-
sempy_labs/admin/_git.py,sha256=
|
|
91
|
-
sempy_labs/admin/_items.py,sha256=
|
|
92
|
-
sempy_labs/admin/_scanner.py,sha256=
|
|
88
|
+
sempy_labs/admin/__init__.py,sha256=ZH4hnVyBpMZbgtcVeeagsJ7J0ihE7QES3WxIL4z78g4,1995
|
|
89
|
+
sempy_labs/admin/_basic_functions.py,sha256=vrHszPvZdHF2UIYkpkYPDKKc1YfX5ZHlakYC6kDup4Q,39495
|
|
90
|
+
sempy_labs/admin/_domains.py,sha256=pw9_szJEiclYH__v7cMeAHMLgYBhFTYTixK-b-5x3Jc,15064
|
|
91
|
+
sempy_labs/admin/_external_data_share.py,sha256=q4gw5iYZJDH-9xIM6L0b2CU9ebUIdE-ZVrFsulRHyUU,3364
|
|
92
|
+
sempy_labs/admin/_git.py,sha256=gsbDQKd66knCI_Zh8vHSfHK-uQVJjVmhKKvfMMYKZyA,2264
|
|
93
|
+
sempy_labs/admin/_items.py,sha256=8RT3CqFQiDCs-XEgAtQeD3YSFezOz3_E_MArTZAiV-o,8705
|
|
94
|
+
sempy_labs/admin/_scanner.py,sha256=58mez0RchcPd3aelD7bJKtg9lI1uqDDmJ_z_ATYiwvs,4453
|
|
93
95
|
sempy_labs/directlake/__init__.py,sha256=etaj-3wqe5t93mu74tGYjEOQ6gtHWUogidOygiVvlq8,2131
|
|
94
|
-
sempy_labs/directlake/_directlake_schema_compare.py,sha256=
|
|
96
|
+
sempy_labs/directlake/_directlake_schema_compare.py,sha256=In3Ac07GI6T3eLDvQK7Xt9bXwJLI7MgNAk83rOKsYKc,5040
|
|
95
97
|
sempy_labs/directlake/_directlake_schema_sync.py,sha256=5nDyE-8ApeaUJO9aJLasop8G9bG9TjPamDQvgAlCUew,4671
|
|
96
|
-
sempy_labs/directlake/_dl_helper.py,sha256=
|
|
97
|
-
sempy_labs/directlake/_generate_shared_expression.py,sha256=
|
|
98
|
-
sempy_labs/directlake/_get_directlake_lakehouse.py,sha256=
|
|
98
|
+
sempy_labs/directlake/_dl_helper.py,sha256=jNWyrEbR0eNSPqaDeraUcTv1rMMvj8gipzxnSvdJl1g,10687
|
|
99
|
+
sempy_labs/directlake/_generate_shared_expression.py,sha256=WkE2onOO6XiloMNFdwwavGlANgmDGFMv2NXpqorhDAc,3002
|
|
100
|
+
sempy_labs/directlake/_get_directlake_lakehouse.py,sha256=e0WFQm4-daJR4K1aHuVaubu7T26yTeBgfNEMOXk-EzM,2392
|
|
99
101
|
sempy_labs/directlake/_get_shared_expression.py,sha256=qc85kXggkx_7Sz_rAAli_yPnLzrGZpgD8IfVbTfZhQM,1133
|
|
100
102
|
sempy_labs/directlake/_guardrails.py,sha256=YO8OycXDxmWrtH8nTz5a4AddfnpskM83rTPEPBVpqbM,2701
|
|
101
|
-
sempy_labs/directlake/_list_directlake_model_calc_tables.py,sha256=
|
|
102
|
-
sempy_labs/directlake/_show_unsupported_directlake_objects.py,sha256=
|
|
103
|
+
sempy_labs/directlake/_list_directlake_model_calc_tables.py,sha256=EYT4ELmOZ3Uklzy6uMQMidc4WtBXm21NQqZu1Q5HTsg,2509
|
|
104
|
+
sempy_labs/directlake/_show_unsupported_directlake_objects.py,sha256=nmrZrtDez7U8Ji76i9fxnnTx1zxMu2LCOZTMz4sFUEc,3504
|
|
103
105
|
sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py,sha256=DC8Ig8oJtPY5qdWytIy03iiqYiQxLoRmQ5hsu6I69Sw,6348
|
|
104
106
|
sempy_labs/directlake/_update_directlake_partition_entity.py,sha256=z6dSrzPzRTQOVByLcGigMyXOF9YAUjSEqeAyAeVGh5U,8335
|
|
105
|
-
sempy_labs/directlake/_warm_cache.py,sha256=
|
|
106
|
-
sempy_labs/
|
|
107
|
-
sempy_labs/
|
|
108
|
-
sempy_labs/
|
|
109
|
-
sempy_labs/
|
|
110
|
-
sempy_labs/lakehouse/
|
|
111
|
-
sempy_labs/
|
|
107
|
+
sempy_labs/directlake/_warm_cache.py,sha256=xc7gG_OJY1rJYg79ztgcLATpnXHNqFaw-6CU1HgdlXk,9258
|
|
108
|
+
sempy_labs/graph/__init__.py,sha256=AZ_IpOL06VvXrYmgbcrvQlxCxdDksvwXKf7JAGohCNI,620
|
|
109
|
+
sempy_labs/graph/_groups.py,sha256=2axQ__eHNgJfb0ITOjexysz2Tq4AQ7xSejH4zG-QCFc,12531
|
|
110
|
+
sempy_labs/graph/_teams.py,sha256=IxYaYxD3L6RGf4XFiC6VCLH5tqNWGEijtulEG8RwdRM,3043
|
|
111
|
+
sempy_labs/graph/_users.py,sha256=5leq_Htox_rfbGQvK4T7NvNasur-HuoFey26qrSHjYM,5652
|
|
112
|
+
sempy_labs/lakehouse/__init__.py,sha256=k4offCjolrw8cpe1mj5AmPq5JcwsxohBwqR37nNc_7E,757
|
|
113
|
+
sempy_labs/lakehouse/_get_lakehouse_columns.py,sha256=FWCyJhqqnZg837eK-S5st0xZpxbhxkcS8aTguazxjjY,2685
|
|
114
|
+
sempy_labs/lakehouse/_get_lakehouse_tables.py,sha256=OmgYLNiegc8HwJP7hEPo5JMWFPyDIPSoqewBxsDkucc,8544
|
|
115
|
+
sempy_labs/lakehouse/_lakehouse.py,sha256=sD1bQ2mEnSmRJLd1D1yMeXOZHRvq8ZlyAGxjLCwFi0s,8734
|
|
116
|
+
sempy_labs/lakehouse/_shortcuts.py,sha256=ASlHqJR5mGgRTjQkKvZXKXT7-hHjgeKVqhtXh5joYqk,8819
|
|
117
|
+
sempy_labs/migration/__init__.py,sha256=142n01VAqlcx4E0mGGRtUfVOEwAXVdiHI_XprmUm7As,1175
|
|
112
118
|
sempy_labs/migration/_create_pqt_file.py,sha256=eRK0Jz9ZeV_7jV3kNRze0bTAIqxsAZXLKMGE_loKOaY,9677
|
|
113
|
-
sempy_labs/migration/
|
|
114
|
-
sempy_labs/migration/
|
|
115
|
-
sempy_labs/migration/
|
|
116
|
-
sempy_labs/migration/
|
|
119
|
+
sempy_labs/migration/_direct_lake_to_import.py,sha256=uMqvElwkCHMyraP9t2nGNgstRobiHPFo4AMuS60dXyU,2732
|
|
120
|
+
sempy_labs/migration/_migrate_calctables_to_lakehouse.py,sha256=XzOPphiUmDIgv1ruhMyhAOs80hOfXCTKCrBGRP3PKtE,17998
|
|
121
|
+
sempy_labs/migration/_migrate_calctables_to_semantic_model.py,sha256=Qt4WfmllCtSl-xkWzWWL5sTzi3lQDaJp43lVEXQisVY,6303
|
|
122
|
+
sempy_labs/migration/_migrate_model_objects_to_semantic_model.py,sha256=RD0ttWcBratAzpPKjFF6jpEnZEd6M7m8OfEUFbkInbA,22950
|
|
123
|
+
sempy_labs/migration/_migrate_tables_columns_to_semantic_model.py,sha256=HYi2vn7yYDsBCTAXFTi6UiB86kdSlhQKPdwAt1nTKEE,7169
|
|
117
124
|
sempy_labs/migration/_migration_validation.py,sha256=pl5Yv4BwRHZfAL0p2soj_Gk8FL3UcwiqKbX23pJe1oQ,2788
|
|
118
|
-
sempy_labs/migration/_refresh_calc_tables.py,sha256=
|
|
125
|
+
sempy_labs/migration/_refresh_calc_tables.py,sha256=W-lYdUZZcoYyLRIpMdpgaz03PEMM6Zf7E1vzT6MmMAE,5516
|
|
119
126
|
sempy_labs/report/_BPAReportTemplate.json,sha256=9Uh-7E6d2ooxQ7j5JRayv_ayEULc7Gzg42kZGKdOqH8,63920
|
|
120
127
|
sempy_labs/report/__init__.py,sha256=esE_i1lL2AdcwWs7cE8AKSXZy_7w_4jJJtFULFkDPcU,1244
|
|
121
|
-
sempy_labs/report/_download_report.py,sha256=
|
|
122
|
-
sempy_labs/report/_generate_report.py,sha256=
|
|
123
|
-
sempy_labs/report/_paginated.py,sha256=
|
|
128
|
+
sempy_labs/report/_download_report.py,sha256=hX6BlIN1dCE6wiDpTZymGus9ZC4UnnI32OiUeMQ7PN0,2709
|
|
129
|
+
sempy_labs/report/_generate_report.py,sha256=Ir4xDldITvWWJebbY1Ljj5m04cKQ8oPTQta83LtALoc,14253
|
|
130
|
+
sempy_labs/report/_paginated.py,sha256=rsElE0IQ9qxRDuEp6qNF1EcD5XEgfTc7WsWEQsalsuI,2156
|
|
124
131
|
sempy_labs/report/_report_bpa.py,sha256=bMZlvFVKypRCC7uC0QmkqV9i4n5nMj3X-tI2N6OOxLc,13861
|
|
125
132
|
sempy_labs/report/_report_bpa_rules.py,sha256=tPVGA0hmE6QMLlWtig7Va7Ksr2yXWl_Lndq--tWWd6w,4959
|
|
126
|
-
sempy_labs/report/_report_functions.py,sha256=
|
|
133
|
+
sempy_labs/report/_report_functions.py,sha256=DlfGtDtTS3kM0v039UOHEHQ8_7I2jj2jBaQYoHJpfKY,29884
|
|
127
134
|
sempy_labs/report/_report_helper.py,sha256=NcdWgFuh1GjDwVPzy6QWwg3ecaJKoWzZdhbxT6hbbdA,10599
|
|
128
|
-
sempy_labs/report/_report_list_functions.py,sha256=
|
|
129
|
-
sempy_labs/report/_report_rebind.py,sha256=
|
|
130
|
-
sempy_labs/report/_reportwrapper.py,sha256=
|
|
135
|
+
sempy_labs/report/_report_list_functions.py,sha256=K9tMDQKhIZhelHvfMMW0lsxbVHekJ-5dAQveoD7PUDA,3980
|
|
136
|
+
sempy_labs/report/_report_rebind.py,sha256=pOzg_XWbip8ledM79APsLxUjLJNS9aTDKK9dEx1F7Ds,4990
|
|
137
|
+
sempy_labs/report/_reportwrapper.py,sha256=gwilmrE_QqWLQankc1rFlbp1_bexbdR5K5pGyx0N3Go,82945
|
|
131
138
|
sempy_labs/report/_bpareporttemplate/.platform,sha256=kWRa6B_KwSYLsvVFDx372mQriQO8v7dJ_YzQV_cfD-Q,303
|
|
132
139
|
sempy_labs/report/_bpareporttemplate/definition.pbir,sha256=bttyHZYKqjA8OBb_cezGlX4H82cDvGZVCl1QB3fij4E,343
|
|
133
140
|
sempy_labs/report/_bpareporttemplate/.pbi/localSettings.json,sha256=kzjBlNdjbsSBBSHBwbQc298AJCr9Vp6Ex0D5PemUuT0,1578
|
|
@@ -158,9 +165,9 @@ sempy_labs/report/_bpareporttemplate/definition/pages/c597da16dc7e63222a82/visua
|
|
|
158
165
|
sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/page.json,sha256=wBVuNc8S2NaUA0FC708w6stmR2djNZp8nAsHMqesgsc,293
|
|
159
166
|
sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/visuals/ce8532a7e25020271077/visual.json,sha256=mlY6t9OlSe-Y6_QmXJpS1vggU6Y3FjISUKECL8FVSg8,931
|
|
160
167
|
sempy_labs/tom/__init__.py,sha256=Qbs8leW0fjzvWwOjyWK3Hjeehu7IvpB1beASGsi28bk,121
|
|
161
|
-
sempy_labs/tom/_model.py,sha256=
|
|
162
|
-
semantic_link_labs-0.9.
|
|
163
|
-
semantic_link_labs-0.9.
|
|
164
|
-
semantic_link_labs-0.9.
|
|
165
|
-
semantic_link_labs-0.9.
|
|
166
|
-
semantic_link_labs-0.9.
|
|
168
|
+
sempy_labs/tom/_model.py,sha256=mZ6vCdngYFgDApcAmAZMnvJCYha3KyJOT8LidlguOKs,178793
|
|
169
|
+
semantic_link_labs-0.9.3.dist-info/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
|
|
170
|
+
semantic_link_labs-0.9.3.dist-info/METADATA,sha256=cwDtUO5grMFH9sHRkgjnII90UfveA5VAldDKm8PGmOs,24748
|
|
171
|
+
semantic_link_labs-0.9.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
172
|
+
semantic_link_labs-0.9.3.dist-info/top_level.txt,sha256=kiQX1y42Dbein1l3Q8jMUYyRulDjdlc2tMepvtrvixQ,11
|
|
173
|
+
semantic_link_labs-0.9.3.dist-info/RECORD,,
|
sempy_labs/__init__.py
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
from sempy_labs._graphQL import (
|
|
2
|
+
list_graphql_apis,
|
|
3
|
+
create_graphql_api,
|
|
4
|
+
)
|
|
1
5
|
from sempy_labs._job_scheduler import (
|
|
2
6
|
list_item_job_instances,
|
|
3
7
|
list_item_schedules,
|
|
4
8
|
)
|
|
9
|
+
from sempy_labs._delta_analyzer import delta_analyzer
|
|
5
10
|
from sempy_labs._gateways import (
|
|
6
11
|
list_gateway_members,
|
|
7
12
|
list_gateway_role_assigments,
|
|
@@ -101,14 +106,8 @@ from sempy_labs._clear_cache import (
|
|
|
101
106
|
list_storage_account_files,
|
|
102
107
|
)
|
|
103
108
|
from sempy_labs._capacity_migration import (
|
|
104
|
-
migrate_spark_settings,
|
|
105
109
|
migrate_workspaces,
|
|
106
110
|
migrate_capacities,
|
|
107
|
-
migrate_notification_settings,
|
|
108
|
-
migrate_access_settings,
|
|
109
|
-
migrate_delegated_tenant_settings,
|
|
110
|
-
migrate_capacity_settings,
|
|
111
|
-
migrate_disaster_recovery_settings,
|
|
112
111
|
migrate_fabric_trial_capacity,
|
|
113
112
|
)
|
|
114
113
|
from sempy_labs._capacities import (
|
|
@@ -199,6 +198,8 @@ from sempy_labs._dax import (
|
|
|
199
198
|
evaluate_dax_impersonation,
|
|
200
199
|
get_dax_query_dependencies,
|
|
201
200
|
get_dax_query_memory_size,
|
|
201
|
+
# dax_perf_test,
|
|
202
|
+
# dax_perf_test_bulk,
|
|
202
203
|
)
|
|
203
204
|
from sempy_labs._generate_semantic_model import (
|
|
204
205
|
create_blank_semantic_model,
|
|
@@ -224,6 +225,7 @@ from sempy_labs._list_functions import (
|
|
|
224
225
|
update_item,
|
|
225
226
|
list_server_properties,
|
|
226
227
|
list_semantic_model_errors,
|
|
228
|
+
list_synonyms,
|
|
227
229
|
)
|
|
228
230
|
from sempy_labs._helper_functions import (
|
|
229
231
|
convert_to_friendly_case,
|
|
@@ -302,7 +304,6 @@ __all__ = [
|
|
|
302
304
|
"restore_semantic_model",
|
|
303
305
|
"list_semantic_model_object_report_usage",
|
|
304
306
|
"list_report_semantic_model_objects",
|
|
305
|
-
"migrate_spark_settings",
|
|
306
307
|
"create_azure_storage_account",
|
|
307
308
|
"delete_custom_pool",
|
|
308
309
|
"clear_cache",
|
|
@@ -404,11 +405,6 @@ __all__ = [
|
|
|
404
405
|
"migrate_workspaces",
|
|
405
406
|
"migrate_capacities",
|
|
406
407
|
"create_fabric_capacity",
|
|
407
|
-
"migrate_capacity_settings",
|
|
408
|
-
"migrate_disaster_recovery_settings",
|
|
409
|
-
"migrate_notification_settings",
|
|
410
|
-
"migrate_access_settings",
|
|
411
|
-
"migrate_delegated_tenant_settings",
|
|
412
408
|
"convert_to_friendly_case",
|
|
413
409
|
"list_mirrored_warehouses",
|
|
414
410
|
"list_kql_databases",
|
|
@@ -497,4 +493,10 @@ __all__ = [
|
|
|
497
493
|
"list_resource_groups",
|
|
498
494
|
"get_resource_group",
|
|
499
495
|
"service_principal_authentication",
|
|
496
|
+
"list_synonyms",
|
|
497
|
+
"list_graphql_apis",
|
|
498
|
+
"create_graphql_api",
|
|
499
|
+
"delta_analyzer",
|
|
500
|
+
# "dax_perf_test",
|
|
501
|
+
# "dax_perf_test_bulk",
|
|
500
502
|
]
|
sempy_labs/_ai.py
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import sempy
|
|
2
2
|
import sempy.fabric as fabric
|
|
3
3
|
import pandas as pd
|
|
4
|
-
from pyspark.sql import SparkSession
|
|
5
4
|
from typing import List, Optional, Union
|
|
6
5
|
from IPython.display import display
|
|
7
6
|
import sempy_labs._icons as icons
|
|
7
|
+
from sempy_labs._helper_functions import (
|
|
8
|
+
_read_delta_table,
|
|
9
|
+
_run_spark_sql_query,
|
|
10
|
+
)
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
def optimize_semantic_model(dataset: str, workspace: Optional[str] = None):
|
|
@@ -186,13 +189,13 @@ def generate_aggs(
|
|
|
186
189
|
|
|
187
190
|
query = query[:-1]
|
|
188
191
|
|
|
189
|
-
spark = SparkSession.builder.getOrCreate()
|
|
190
192
|
fromTablePath = create_abfss_path(
|
|
191
193
|
lakehouse_id=lakehouse_id,
|
|
192
194
|
lakehouse_workspace_id=lakehouse_workspace_id,
|
|
193
195
|
delta_table_name=lakeTName,
|
|
194
196
|
)
|
|
195
|
-
|
|
197
|
+
|
|
198
|
+
df = _read_delta_table(fromTablePath)
|
|
196
199
|
tempTableName = f"delta_table_{lakeTName}"
|
|
197
200
|
df.createOrReplaceTempView(tempTableName)
|
|
198
201
|
sqlQuery = f"{query} \n FROM {tempTableName} {groupBy}"
|
|
@@ -201,7 +204,7 @@ def generate_aggs(
|
|
|
201
204
|
print(sqlQuery)
|
|
202
205
|
|
|
203
206
|
# Save query to spark dataframe
|
|
204
|
-
spark_df =
|
|
207
|
+
spark_df = _run_spark_sql_query(sqlQuery)
|
|
205
208
|
f"\nCreating/updating the '{aggLakeTName}' table in the lakehouse..."
|
|
206
209
|
# Write spark dataframe to delta table
|
|
207
210
|
aggFilePath = create_abfss_path(
|
|
@@ -419,7 +422,7 @@ def generate_aggs(
|
|
|
419
422
|
# dfP = fabric.list_partitions(dataset = dataset, workspace = workspace)
|
|
420
423
|
# isDirectLake = any(r['Mode'] == 'DirectLake' for i, r in dfP.iterrows())
|
|
421
424
|
|
|
422
|
-
# spark =
|
|
425
|
+
# spark = _create_spark_session()
|
|
423
426
|
# views = spark.sql(f"SHOW VIEWS IN {lakehouse}").collect()
|
|
424
427
|
# for view in views:
|
|
425
428
|
# viewName = view['viewName']
|