dbt-adapters 1.15.2__py3-none-any.whl → 1.16.0__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 dbt-adapters might be problematic. Click here for more details.

dbt/adapters/__about__.py CHANGED
@@ -1 +1 @@
1
- version = "1.15.2"
1
+ version = "1.16.0"
dbt/adapters/base/impl.py CHANGED
@@ -107,7 +107,6 @@ from dbt.adapters.protocol import AdapterConfig, MacroContextGeneratorCallable
107
107
  if TYPE_CHECKING:
108
108
  import agate
109
109
 
110
-
111
110
  GET_CATALOG_MACRO_NAME = "get_catalog"
112
111
  GET_CATALOG_RELATIONS_MACRO_NAME = "get_catalog_relations"
113
112
  FRESHNESS_MACRO_NAME = "collect_freshness"
@@ -872,7 +871,7 @@ class BaseAdapter(metaclass=AdapterMeta):
872
871
  # aren't always present.
873
872
  for column in ("dbt_scd_id", "dbt_valid_from", "dbt_valid_to"):
874
873
  desired = column_names[column] if column_names else column
875
- if desired not in names:
874
+ if desired and desired.lower() not in names:
876
875
  missing.append(desired)
877
876
 
878
877
  if missing:
@@ -9,3 +9,5 @@ from dbt.adapters.catalogs._integration import (
9
9
  CatalogIntegrationConfig,
10
10
  CatalogRelation,
11
11
  )
12
+
13
+ from dbt.adapters.catalogs._constants import CATALOG_INTEGRATION_MODEL_CONFIG_NAME
@@ -0,0 +1 @@
1
+ CATALOG_INTEGRATION_MODEL_CONFIG_NAME = "catalog_name"
@@ -40,6 +40,7 @@ class CatalogIntegrationConfig(Protocol):
40
40
  catalog_name: Optional[str]
41
41
  table_format: Optional[str]
42
42
  external_volume: Optional[str]
43
+ file_format: Optional[str]
43
44
  adapter_properties: Dict[str, Any]
44
45
 
45
46
 
@@ -47,6 +48,7 @@ class CatalogRelation(Protocol):
47
48
  catalog_name: Optional[str]
48
49
  table_format: Optional[str]
49
50
  external_volume: Optional[str]
51
+ file_format: Optional[str]
50
52
 
51
53
 
52
54
  class CatalogIntegration(abc.ABC):
@@ -78,16 +80,17 @@ class CatalogIntegration(abc.ABC):
78
80
 
79
81
  catalog_type: str
80
82
  table_format: Optional[str] = None
83
+ file_format: Optional[str] = None
81
84
  allows_writes: bool = False
82
85
 
83
86
  def __init__(self, config: CatalogIntegrationConfig) -> None:
84
87
  # table_format is often fixed for a catalog type, allow it to be defined at the class level
85
88
  if config.table_format is not None:
86
89
  self.table_format = config.table_format
87
-
88
90
  self.name: str = config.name
89
91
  self.catalog_name: Optional[str] = config.catalog_name
90
92
  self.external_volume: Optional[str] = config.external_volume
93
+ self.file_format: Optional[str] = config.file_format
91
94
 
92
95
  def build_relation(self, config: RelationConfig) -> CatalogRelation:
93
96
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbt-adapters
3
- Version: 1.15.2
3
+ Version: 1.16.0
4
4
  Summary: The set of adapter protocols and base functionality that supports integration with dbt-core
5
5
  Project-URL: Homepage, https://github.com/dbt-labs/dbt-adapters/tree/main/dbt-adapters
6
6
  Project-URL: Documentation, https://docs.getdbt.com
@@ -22,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.11
22
22
  Classifier: Programming Language :: Python :: 3.12
23
23
  Requires-Python: >=3.9.0
24
24
  Requires-Dist: agate<2.0,>=1.0
25
- Requires-Dist: dbt-common<3.0,>=2.0
25
+ Requires-Dist: dbt-common<2.0,>=1.13
26
26
  Requires-Dist: dbt-protos<2.0,>=1.0.291
27
27
  Requires-Dist: mashumaro[msgpack]<3.15,>=3.9
28
28
  Requires-Dist: protobuf<6.0,>=5.0
@@ -1,4 +1,4 @@
1
- dbt/adapters/__about__.py,sha256=UIr04FUh-Qtwrcdor3nGig4UHjIOKoD76BAxzVJ-yQs,19
1
+ dbt/adapters/__about__.py,sha256=6EsnLejJWxuMqRt_s2lK0ter3lZGaIm5OK1MPeLZC5M,19
2
2
  dbt/adapters/__init__.py,sha256=3noHsg-64qI0_Pw6OR9F7l1vU2_qrJvinq8POTtuaZM,252
3
3
  dbt/adapters/cache.py,sha256=WGy4ewnz-J13LverTACBW2iFhGswrWLgm-wiBrQnMzo,20084
4
4
  dbt/adapters/capability.py,sha256=M3FkC9veKnNB7a7uQyl7EHX_AGNXPChbHAkcY4cgXCY,2534
@@ -11,15 +11,16 @@ dbt/adapters/base/README.md,sha256=muHQntC07Lh6L1XfVgwKhV5RltOPBLYPdQqd8_7l34c,5
11
11
  dbt/adapters/base/__init__.py,sha256=Nc8lQVkOzAqdcxk4cw4E_raxN9CAWMwhQx4STdiicxg,456
12
12
  dbt/adapters/base/column.py,sha256=Uj20UixoxCn2rlv4QDNONyys6CDkDFyG3anCXKf0T2c,5350
13
13
  dbt/adapters/base/connections.py,sha256=-C5dOwGgMKH8n_v6wjwOxV7chBdS0GjOGwNQCUbhhWc,16951
14
- dbt/adapters/base/impl.py,sha256=cte4Feh_bSmLCIbmtQJderuWHLblNZF55uTfG0K66qg,78467
14
+ dbt/adapters/base/impl.py,sha256=0RqSVYNFVldfxjJVCBhULdgrtdUgX2daVo9fQCDcIT8,78486
15
15
  dbt/adapters/base/meta.py,sha256=c5j0qeGec1cAi-IlVV_JkhMk01p5XqbtGj02uxGP1S4,5686
16
16
  dbt/adapters/base/plugin.py,sha256=rm0GjNHnWM2mn0GJOjciZLwn-02xlzWCoMT9u-epwP0,1076
17
17
  dbt/adapters/base/query_headers.py,sha256=rHgux9b_vPp_xRsg8QU3NE202Hho4i4zO9u9Gx_BCF4,3651
18
18
  dbt/adapters/base/relation.py,sha256=eePneHZQ-bb0ZFaEpC_1xzsxJF38e6k7b3FUxD8PK0I,19383
19
- dbt/adapters/catalogs/__init__.py,sha256=Pm0EseleLEZRK3ML1FlID1aoVKeqOPqZvJ_TYYnURfY,372
19
+ dbt/adapters/catalogs/__init__.py,sha256=9Lsz26jcljxwJLBgfHHQMqOyoKNahrqxSst0YN9WAy8,456
20
20
  dbt/adapters/catalogs/_client.py,sha256=bIXZxEL1-4kSXHFPnMw3egIOx1fKZmjxKiO1Wv-KuHg,2258
21
+ dbt/adapters/catalogs/_constants.py,sha256=8O5wLK4oVqirpC9ap7PIXodq8XtkQhHJ5W0OU1xtwjk,55
21
22
  dbt/adapters/catalogs/_exceptions.py,sha256=5zkSmjUG5y_Dzv0AAUptsJpNDHnmb8D0mUb_HIQCj_I,1133
22
- dbt/adapters/catalogs/_integration.py,sha256=3tV2n4_zMIS9jqaPfA6Lhzn_REHBka7BHdsc7YJwC5c,6434
23
+ dbt/adapters/catalogs/_integration.py,sha256=0acuF_Awoe-GJrCdNwBQldtgRmBtpqYpZkTPRVJFhys,6594
23
24
  dbt/adapters/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
25
  dbt/adapters/clients/jinja.py,sha256=NsZOiBpOLunS46hRL5OcX1MpY3Ih6_87Vgz4qd_PNbc,768
25
26
  dbt/adapters/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -162,7 +163,7 @@ dbt/include/global_project/macros/utils/right.sql,sha256=EwNG98CAFIwNDmarwopf7Rk
162
163
  dbt/include/global_project/macros/utils/safe_cast.sql,sha256=1mswwkDACmIi1I99JKb_-vq3kjMe4HhMRV70mW8Bt4Y,298
163
164
  dbt/include/global_project/macros/utils/split_part.sql,sha256=fXEIS0oIiYR7-4lYbb0QbZdG-q2TpV63AFd1ky4I5UM,714
164
165
  dbt/include/global_project/tests/generic/builtin.sql,sha256=p94xdyPwb2TlxgLBqCfrcRfJ1QNgsjPvBm8f0Q5eqZM,1022
165
- dbt_adapters-1.15.2.dist-info/METADATA,sha256=DrdzpLKN1lEHLBXpf-HBRToENnJHX5cAfIO3XFw0jr8,4533
166
- dbt_adapters-1.15.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
167
- dbt_adapters-1.15.2.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
168
- dbt_adapters-1.15.2.dist-info/RECORD,,
166
+ dbt_adapters-1.16.0.dist-info/METADATA,sha256=KjCmvYSjB_XigcdfmkJlzPVEHzwAlV17OGPM4mJa9Wo,4534
167
+ dbt_adapters-1.16.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
168
+ dbt_adapters-1.16.0.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
169
+ dbt_adapters-1.16.0.dist-info/RECORD,,