lidb 1.1.0__py3-none-any.whl → 1.1.1__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 lidb might be problematic. Click here for more details.
lidb/__init__.py
CHANGED
lidb/parse.py
CHANGED
|
@@ -9,11 +9,8 @@ Email: yundi.xxii@outlook.com
|
|
|
9
9
|
"""
|
|
10
10
|
import re
|
|
11
11
|
from pathlib import Path
|
|
12
|
-
from typing import Dict, Set
|
|
13
12
|
from urllib.parse import unquote
|
|
14
|
-
from collections import defaultdict
|
|
15
13
|
|
|
16
|
-
import polars
|
|
17
14
|
import polars as pl
|
|
18
15
|
import sqlparse
|
|
19
16
|
|
|
@@ -72,7 +69,7 @@ def extract_table_names_from_sql(sql_query):
|
|
|
72
69
|
return table_names
|
|
73
70
|
|
|
74
71
|
|
|
75
|
-
def parse_hive_partition_structure(root_path: Path | str, file_pattern: str = "*.parquet") ->
|
|
72
|
+
def parse_hive_partition_structure(root_path: Path | str, file_pattern: str = "*.parquet") -> pl.DataFrame:
|
|
76
73
|
"""
|
|
77
74
|
通用Hive分区结构解析器
|
|
78
75
|
|
|
@@ -101,7 +98,7 @@ def parse_hive_partition_structure(root_path: Path | str, file_pattern: str = "*
|
|
|
101
98
|
partition_dict[key] = value
|
|
102
99
|
|
|
103
100
|
# 记录分区组合
|
|
104
|
-
combination = tuple(
|
|
101
|
+
combination = tuple(partition_dict.items())
|
|
105
102
|
partition_combinations.add(combination)
|
|
106
103
|
|
|
107
104
|
# 转换为普通dict
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
lidb/__init__.py,sha256=VZCL7ZEcalMMdOPBHRw8V6172JXsWyGOcE6emDN9Kag,313
|
|
2
|
+
lidb/database.py,sha256=U1h80jgmkRfgQW8sdhb7B3ISvQJUvPefLurWMsbzqa0,5372
|
|
3
|
+
lidb/init.py,sha256=jLHpeL5mIM4YjdMYAndZlDilMiKXJMr_51Ke3ZSJWCM,1170
|
|
4
|
+
lidb/parse.py,sha256=f7vfj6Nguw1WzUVEUb7fs2Oh-_2YQzB_atJhm3WGC28,3379
|
|
5
|
+
lidb-1.1.1.dist-info/METADATA,sha256=loQcZ_-S9qE-_e5fHezJF9P3NXt_caG9CnT0LOH1tLs,303
|
|
6
|
+
lidb-1.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
lidb-1.1.1.dist-info/top_level.txt,sha256=NgXJNwt6ld6oLXtW1vOPaEh-VO5R0JEX_KmGIJR4ueE,5
|
|
8
|
+
lidb-1.1.1.dist-info/RECORD,,
|
lidb-1.1.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
lidb/__init__.py,sha256=dCfYBd1A4-lAcGv-9kVjLxmWva2DnH8ev0s-3nJk3vQ,313
|
|
2
|
-
lidb/database.py,sha256=U1h80jgmkRfgQW8sdhb7B3ISvQJUvPefLurWMsbzqa0,5372
|
|
3
|
-
lidb/init.py,sha256=jLHpeL5mIM4YjdMYAndZlDilMiKXJMr_51Ke3ZSJWCM,1170
|
|
4
|
-
lidb/parse.py,sha256=5lrYtT_XyRfZYX_AwfmhDYZywPBkAbzIVwJk_7l5Nrw,3470
|
|
5
|
-
lidb-1.1.0.dist-info/METADATA,sha256=jkGViIS9bnzJtVGF0vzgJm4W4_MaMIb6h00rYuyezN8,303
|
|
6
|
-
lidb-1.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
lidb-1.1.0.dist-info/top_level.txt,sha256=NgXJNwt6ld6oLXtW1vOPaEh-VO5R0JEX_KmGIJR4ueE,5
|
|
8
|
-
lidb-1.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|