datachain 0.34.5__py3-none-any.whl → 0.34.6__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 datachain might be problematic. Click here for more details.
- datachain/query/utils.py +6 -2
- {datachain-0.34.5.dist-info → datachain-0.34.6.dist-info}/METADATA +1 -1
- {datachain-0.34.5.dist-info → datachain-0.34.6.dist-info}/RECORD +7 -7
- {datachain-0.34.5.dist-info → datachain-0.34.6.dist-info}/WHEEL +0 -0
- {datachain-0.34.5.dist-info → datachain-0.34.6.dist-info}/entry_points.txt +0 -0
- {datachain-0.34.5.dist-info → datachain-0.34.6.dist-info}/licenses/LICENSE +0 -0
- {datachain-0.34.5.dist-info → datachain-0.34.6.dist-info}/top_level.txt +0 -0
datachain/query/utils.py
CHANGED
|
@@ -2,12 +2,16 @@ from typing import Optional, Union
|
|
|
2
2
|
|
|
3
3
|
import sqlalchemy as sa
|
|
4
4
|
|
|
5
|
-
ColT = Union[sa.Column, sa.ColumnElement, sa.TextClause, sa.Label]
|
|
5
|
+
ColT = Union[sa.ColumnClause, sa.Column, sa.ColumnElement, sa.TextClause, sa.Label]
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
def column_name(col: ColT) -> str:
|
|
9
9
|
"""Returns column name from column element."""
|
|
10
|
-
return
|
|
10
|
+
return (
|
|
11
|
+
col.name
|
|
12
|
+
if isinstance(col, (sa.ColumnClause, sa.Column, sa.Label))
|
|
13
|
+
else str(col)
|
|
14
|
+
)
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
def get_query_column(query: sa.Select, name: str) -> Optional[ColT]:
|
|
@@ -139,7 +139,7 @@ datachain/query/queue.py,sha256=v0UeK4ilmdiRoJ5OdjB5qpnHTYDxRP4vhVp5Iw_toaI,3512
|
|
|
139
139
|
datachain/query/schema.py,sha256=qLpEyvnzKlNCOrThQiTNpUKTUEsVIHT9trt-0UMt6ko,6704
|
|
140
140
|
datachain/query/session.py,sha256=gKblltJAVQAVSTswAgWGDgGbpmFlFzFVkIQojDCjgXM,6809
|
|
141
141
|
datachain/query/udf.py,sha256=jqutTpvkT6eHl96ZEgYiiTMAhI7vmTQA6JH9y4WCibI,1405
|
|
142
|
-
datachain/query/utils.py,sha256=
|
|
142
|
+
datachain/query/utils.py,sha256=K2yECxgc6ywcSV-XenzpFL9csZbtbRtoDn36_Sni2M0,1296
|
|
143
143
|
datachain/remote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
144
144
|
datachain/remote/studio.py,sha256=amjcV0B8qumsVBnxPQnt8oSrnfMK2vAdOurVMA9L_zA,16868
|
|
145
145
|
datachain/sql/__init__.py,sha256=8D2omsBiATt8bjLjGo6jBEtaKEkOlnlNFWhVryHMDv0,388
|
|
@@ -165,9 +165,9 @@ datachain/sql/sqlite/vector.py,sha256=ncW4eu2FlJhrP_CIpsvtkUabZlQdl2D5Lgwy_cbfqR
|
|
|
165
165
|
datachain/toolkit/__init__.py,sha256=eQ58Q5Yf_Fgv1ZG0IO5dpB4jmP90rk8YxUWmPc1M2Bo,68
|
|
166
166
|
datachain/toolkit/split.py,sha256=ktGWzY4kyzjWyR86dhvzw-Zhl0lVk_LOX3NciTac6qo,2914
|
|
167
167
|
datachain/torch/__init__.py,sha256=gIS74PoEPy4TB3X6vx9nLO0Y3sLJzsA8ckn8pRWihJM,579
|
|
168
|
-
datachain-0.34.
|
|
169
|
-
datachain-0.34.
|
|
170
|
-
datachain-0.34.
|
|
171
|
-
datachain-0.34.
|
|
172
|
-
datachain-0.34.
|
|
173
|
-
datachain-0.34.
|
|
168
|
+
datachain-0.34.6.dist-info/licenses/LICENSE,sha256=8DnqK5yoPI_E50bEg_zsHKZHY2HqPy4rYN338BHQaRA,11344
|
|
169
|
+
datachain-0.34.6.dist-info/METADATA,sha256=Bp94LT21H__KZ3gAyTsqd-xt-oM-4o8qht42-wsf9CQ,13655
|
|
170
|
+
datachain-0.34.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
171
|
+
datachain-0.34.6.dist-info/entry_points.txt,sha256=0GMJS6B_KWq0m3VT98vQI2YZodAMkn4uReZ_okga9R4,49
|
|
172
|
+
datachain-0.34.6.dist-info/top_level.txt,sha256=lZPpdU_2jJABLNIg2kvEOBi8PtsYikbN1OdMLHk8bTg,10
|
|
173
|
+
datachain-0.34.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|