databricks-labs-lakebridge 0.10.4__py3-none-any.whl → 0.10.5__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.
@@ -1,2 +1,2 @@
1
1
  # DO NOT MODIFY THIS FILE
2
- __version__ = "0.10.4"
2
+ __version__ = "0.10.5"
@@ -639,11 +639,12 @@ def configure_reconcile(w: WorkspaceClient):
639
639
  with_user_agent_extra("cmd", "configure-reconcile")
640
640
  user = w.current_user
641
641
  logger.debug(f"User: {user}")
642
- dbsql_id = _create_warehouse(w)
643
- w.config.warehouse_id = dbsql_id
642
+ if not w.config.warehouse_id:
643
+ dbsql_id = _create_warehouse(w)
644
+ w.config.warehouse_id = dbsql_id
645
+ logger.debug(f"Warehouse ID used for configuring reconcile: {w.config.warehouse_id}.")
644
646
  installer = _installer(w)
645
647
  installer.run(module="reconcile")
646
- _remove_warehouse(w, dbsql_id)
647
648
 
648
649
 
649
650
  @lakebridge.command()
@@ -49,8 +49,9 @@ class TranspilingContext:
49
49
 
50
50
 
51
51
  async def _process_one_file(context: TranspilingContext) -> tuple[int, list[TranspileError]]:
52
+ input_path = context.input_path
52
53
 
53
- logger.debug(f"Started processing file: {context.input_path!s}")
54
+ logger.debug(f"Started processing file: {input_path}")
54
55
 
55
56
  if not context.config.source_dialect:
56
57
  error = TranspileError(
@@ -62,7 +63,11 @@ async def _process_one_file(context: TranspilingContext) -> tuple[int, list[Tran
62
63
  )
63
64
  return 0, [error]
64
65
 
65
- source_code = read_text(context.input_path)
66
+ # Check if it looks like XML, where we need to sniff the encoding instead of relying on a BOM or defaulting to the
67
+ # local platform encoding.
68
+ sniff_xml_encoding = input_path.suffix.lower() == ".xml"
69
+
70
+ source_code = read_text(input_path, detect_xml=sniff_xml_encoding)
66
71
  context = dataclasses.replace(context, source_code=source_code)
67
72
 
68
73
  transpile_result = await _transpile(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: databricks-labs-lakebridge
3
- Version: 0.10.4
3
+ Version: 0.10.5
4
4
  Summary: Fast and predictable migrations to Databricks Lakehouse Platform. This tool is designed to help you migrate your data and workloads to the Databricks Lakehouse Platform in a fast, predictable, and reliable way. It provides a set of tools and utilities to help you reconcile your data and workloads, assess your current state, and plan your migration.
5
5
  Project-URL: Documentation, https://databrickslabs.github.io/lakebridge
6
6
  Project-URL: Issues, https://github.com/databrickslabs/lakebridge/issues
@@ -26,7 +26,7 @@ Classifier: Topic :: Utilities
26
26
  Requires-Python: >=3.10
27
27
  Requires-Dist: cryptography<45.1.0,>=44.0.2
28
28
  Requires-Dist: databricks-bb-analyzer~=0.1.9
29
- Requires-Dist: databricks-labs-blueprint[yaml]<0.12.0,>=0.11.2
29
+ Requires-Dist: databricks-labs-blueprint[yaml]<0.12.0,>=0.11.3
30
30
  Requires-Dist: databricks-labs-lsql==0.16.0
31
31
  Requires-Dist: databricks-sdk~=0.51.0
32
32
  Requires-Dist: duckdb~=1.2.2
@@ -8,10 +8,10 @@ docs/lakebridge/src/theme/Footer/index.tsx,sha256=Jj8zY5WDiTLXwF_mAgld8Dh1A3MY1H
8
8
  docs/lakebridge/src/theme/Layout/index.tsx,sha256=IkdLr13jKmLxT0jWQqrwqrjVXc8Rwd_kWNpTd1t2sc0,592
9
9
  databricks/__init__.py,sha256=YqH8Hy8lHJxd0hLMZF6kWirUDdPiX90LRDX6S6yTMn0,261
10
10
  databricks/labs/__init__.py,sha256=YqH8Hy8lHJxd0hLMZF6kWirUDdPiX90LRDX6S6yTMn0,261
11
- databricks/labs/lakebridge/__about__.py,sha256=YbaA9ccBU-BwJ67El953ndAg5kViw0qZOkui5tbsV8c,49
11
+ databricks/labs/lakebridge/__about__.py,sha256=I-rxjdEQtJwfk11pg66LiskWUXIpHZGxnU39vNXcHwM,49
12
12
  databricks/labs/lakebridge/__init__.py,sha256=nUNECqNvyfpT0aeWwlqG0ADT8U8ScCLb8WWpLydppcA,464
13
13
  databricks/labs/lakebridge/base_install.py,sha256=8NxXsNpgqXnuADKXVFh5oQL3osdvygRMY1amJwKfU08,490
14
- databricks/labs/lakebridge/cli.py,sha256=zeibf44Sfu6gjL5lLGnKTXle4kIVBy4hHDuITVL5TxY,31805
14
+ databricks/labs/lakebridge/cli.py,sha256=VJHfy665ln7w-8e4xX18TXemT-XYVVQrXQKA0FkB-VI,31903
15
15
  databricks/labs/lakebridge/config.py,sha256=IjxvphM9fRQHQ2FAxwZ23deJGgSemJ3rMV0sp1Ob6e8,5833
16
16
  databricks/labs/lakebridge/install.py,sha256=x8YQwX-EwSKGYKHeotzUwADfzBrvFeplDHbjifLq9mA,39757
17
17
  databricks/labs/lakebridge/jvmproxy.py,sha256=F9pXpemzdaJXwpshHxVM9PYU_eNn4zTCUFQ5vc9WIhA,1573
@@ -147,7 +147,7 @@ databricks/labs/lakebridge/resources/reconcile/queries/installation/details.sql,
147
147
  databricks/labs/lakebridge/resources/reconcile/queries/installation/main.sql,sha256=s_A0YyGSX_pCWnQsQnY65VYFcbNvq2qKJvYxU6zam6E,794
148
148
  databricks/labs/lakebridge/resources/reconcile/queries/installation/metrics.sql,sha256=FdvjQp7gCwsbcu4UrOuJN-bBLJFpvUIyxH6PQvg04Wo,1006
149
149
  databricks/labs/lakebridge/transpiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
150
- databricks/labs/lakebridge/transpiler/execute.py,sha256=7DpeIixATOPryyt4TD93-sdwE1C_fIwuo6bKwClaF_s,17007
150
+ databricks/labs/lakebridge/transpiler/execute.py,sha256=AgsOGQtmPfCoWYP9U1cYezY14UjGx6TPR_PU1NAY6sE,17268
151
151
  databricks/labs/lakebridge/transpiler/transpile_engine.py,sha256=5zC8fkpBBlt9RjE_BeA_Sd6vaRxA3mBdhTqoRGFTc_Y,1616
152
152
  databricks/labs/lakebridge/transpiler/transpile_status.py,sha256=MO-Ju-ki3FCY15WxgwfPV9EC7Ma9q8aIfSTgHAmnkGU,1715
153
153
  databricks/labs/lakebridge/transpiler/lsp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -165,9 +165,9 @@ databricks/labs/lakebridge/transpiler/sqlglot/parsers/presto.py,sha256=bY6Ku8ZPW
165
165
  databricks/labs/lakebridge/transpiler/sqlglot/parsers/snowflake.py,sha256=dZ7BdOlBZlkbiN9G9bu4l2c456265Gx9WoWUPRa7Ffg,23203
166
166
  databricks/labs/lakebridge/upgrades/v0.4.0_add_main_table_operation_name_column.py,sha256=wMTbj1q5td4fa5DCk0tWFJ-OmhhzsExRLYUe4PKmk0s,3527
167
167
  databricks/labs/lakebridge/upgrades/v0.6.0_alter_metrics_datatype.py,sha256=hnTHRtqzwPSF5Judzh6ss-uB5h3IFtm2ylWduwRNq5Y,2424
168
- databricks_labs_lakebridge-0.10.4.dist-info/METADATA,sha256=DPgVGYnjOrTddEMWZRX2jXPHhHw6WBZJXviKtE5SQ14,3078
169
- databricks_labs_lakebridge-0.10.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
170
- databricks_labs_lakebridge-0.10.4.dist-info/entry_points.txt,sha256=Idr1CT73b8wShdr287yu1hheGbDbhBvucVUlZcbpiPo,75
171
- databricks_labs_lakebridge-0.10.4.dist-info/licenses/LICENSE,sha256=1hG0Cvw6mp9nL9qRoHFcCUk9fYqhcnj2vgJ75rt3BxA,3862
172
- databricks_labs_lakebridge-0.10.4.dist-info/licenses/NOTICE,sha256=wtxMsNvTkw1hAEkkWHz8A8JrYySAUSt1tOTcqddkWEg,1797
173
- databricks_labs_lakebridge-0.10.4.dist-info/RECORD,,
168
+ databricks_labs_lakebridge-0.10.5.dist-info/METADATA,sha256=fY2pyveC_2Z9FjVEFHYNX23xEc8Fl1dbrhfiFcb886o,3078
169
+ databricks_labs_lakebridge-0.10.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
170
+ databricks_labs_lakebridge-0.10.5.dist-info/entry_points.txt,sha256=Idr1CT73b8wShdr287yu1hheGbDbhBvucVUlZcbpiPo,75
171
+ databricks_labs_lakebridge-0.10.5.dist-info/licenses/LICENSE,sha256=1hG0Cvw6mp9nL9qRoHFcCUk9fYqhcnj2vgJ75rt3BxA,3862
172
+ databricks_labs_lakebridge-0.10.5.dist-info/licenses/NOTICE,sha256=wtxMsNvTkw1hAEkkWHz8A8JrYySAUSt1tOTcqddkWEg,1797
173
+ databricks_labs_lakebridge-0.10.5.dist-info/RECORD,,