dbt-firebolt 1.7.0__tar.gz → 1.8.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/PKG-INFO +1 -1
  2. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/adapters/firebolt/__init__.py +1 -1
  3. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/adapters/firebolt/connections.py +15 -13
  4. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/adapters/firebolt/impl.py +6 -6
  5. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/adapters/firebolt/relation.py +4 -4
  6. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt_firebolt.egg-info/PKG-INFO +1 -1
  7. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt_firebolt.egg-info/requires.txt +3 -2
  8. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/setup.cfg +3 -2
  9. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/LICENSE +0 -0
  10. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/MANIFEST.in +0 -0
  11. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/README.md +0 -0
  12. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/adapters/firebolt/__version__.py +0 -0
  13. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/adapters/firebolt/column.py +0 -0
  14. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/adapters/firebolt/relation_configs/__init__.py +0 -0
  15. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/__init__.py +0 -0
  16. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/dbt_project.yml +0 -0
  17. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/adapters/apply_grants.sql +0 -0
  18. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/adapters/relation.sql +0 -0
  19. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/adapters.sql +0 -0
  20. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/catalog.sql +0 -0
  21. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/dbt_external_tables/create_external_table.sql +0 -0
  22. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/dbt_external_tables/dropif.sql +0 -0
  23. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/dbt_external_tables/get_external_build_plan.sql +0 -0
  24. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/clone.sql +0 -0
  25. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/materialized_view.sql +0 -0
  26. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/models/incremental/column_helpers.sql +0 -0
  27. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/models/incremental/incremental.sql +0 -0
  28. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/models/incremental/is_incremental.sql +0 -0
  29. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/models/incremental/merge.sql +0 -0
  30. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/models/incremental/on_schema_change.sql +0 -0
  31. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/models/incremental/strategies.sql +0 -0
  32. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/seed.sql +0 -0
  33. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/table.sql +0 -0
  34. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/test.sql +0 -0
  35. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/materializations/view.sql +0 -0
  36. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/materialized_view/alter.sql +0 -0
  37. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/materialized_view/create.sql +0 -0
  38. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/materialized_view/describe.sql +0 -0
  39. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/materialized_view/drop.sql +0 -0
  40. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/materialized_view/refresh.sql +0 -0
  41. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/table/create.sql +0 -0
  42. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/table/drop.sql +0 -0
  43. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/table/rename.sql +0 -0
  44. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/table/replace.sql +0 -0
  45. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/view/create.sql +0 -0
  46. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/view/drop.sql +0 -0
  47. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/view/rename.sql +0 -0
  48. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/relations/view/replace.sql +0 -0
  49. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/array_append.sql +0 -0
  50. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/array_concat.sql +0 -0
  51. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/array_construct.sql +0 -0
  52. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/bool_or.sql +0 -0
  53. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/cast_bool_to_text.sql +0 -0
  54. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/dateadd.sql +0 -0
  55. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/datediff.sql +0 -0
  56. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/except.sql +0 -0
  57. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/intersect.sql +0 -0
  58. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/listagg.sql +0 -0
  59. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/position.sql +0 -0
  60. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/right.sql +0 -0
  61. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/split_part.sql +0 -0
  62. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt/include/firebolt/macros/utils/timestamps.sql +0 -0
  63. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt_firebolt.egg-info/SOURCES.txt +0 -0
  64. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt_firebolt.egg-info/dependency_links.txt +0 -0
  65. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/dbt_firebolt.egg-info/top_level.txt +0 -0
  66. {dbt_firebolt-1.7.0 → dbt_firebolt-1.8.0}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbt_firebolt
3
- Version: 1.7.0
3
+ Version: 1.8.0
4
4
  Summary: The Firebolt adapter plugin for dbt (data build tool)
5
5
  Home-page: https://github.com/firebolt-db/dbt-firebolt
6
6
  Author: Firebolt
@@ -7,7 +7,7 @@ from dbt.adapters.firebolt.connections import (
7
7
  from dbt.adapters.firebolt.impl import FireboltAdapter
8
8
  from dbt.include import firebolt
9
9
 
10
- __version__ = "1.7.0"
10
+ __version__ = "1.8.0"
11
11
 
12
12
  Plugin = AdapterPlugin(
13
13
  adapter=FireboltAdapter, # type: ignore
@@ -1,19 +1,23 @@
1
1
  from contextlib import contextmanager
2
2
  from dataclasses import dataclass
3
3
  from datetime import datetime
4
+ from multiprocessing.context import SpawnContext
4
5
  from typing import Generator, Optional, Tuple, Union
5
6
 
6
- import dbt.exceptions
7
- from dbt.adapters.base import Credentials
8
- from dbt.adapters.sql import SQLConnectionManager
9
- from dbt.contracts.connection import (
7
+ from dbt.adapters.contracts.connection import (
10
8
  AdapterRequiredConfig,
11
9
  AdapterResponse,
12
10
  Connection,
11
+ Credentials,
13
12
  QueryComment,
14
13
  )
15
- from dbt.events import AdapterLogger # type: ignore
16
- from dbt.exceptions import DbtRuntimeError
14
+ from dbt.adapters.events.logging import AdapterLogger
15
+ from dbt.adapters.sql.connections import SQLConnectionManager
16
+ from dbt_common.exceptions import (
17
+ DbtConfigError,
18
+ DbtRuntimeError,
19
+ NotImplementedError,
20
+ )
17
21
  from firebolt.client import DEFAULT_API_URL
18
22
  from firebolt.client.auth import Auth, ClientCredentials, UsernamePassword
19
23
  from firebolt.db import ARRAY, DECIMAL
@@ -45,13 +49,13 @@ class FireboltCredentials(Credentials):
45
49
  # are provided instead
46
50
  if not self.user and not self.password:
47
51
  if not self.client_id or not self.client_secret:
48
- raise dbt.exceptions.DbtProfileError(
52
+ raise DbtConfigError(
49
53
  'Either user and password or client_id and client_secret'
50
54
  ' must be provided'
51
55
  )
52
56
  else:
53
57
  if self.client_id or self.client_secret:
54
- raise dbt.exceptions.DbtProfileError(
58
+ raise DbtConfigError(
55
59
  'Either user and password or client_id and client_secret'
56
60
  ' must be provided'
57
61
  )
@@ -99,13 +103,13 @@ class FireboltConnectionManager(SQLConnectionManager):
99
103
 
100
104
  TYPE = 'firebolt'
101
105
 
102
- def __init__(self, profile: AdapterRequiredConfig):
106
+ def __init__(self, profile: AdapterRequiredConfig, mp_context: SpawnContext):
103
107
  # Query comment in appent mode only
104
108
  # This allows clearer view of queries in query_history
105
109
  if not hasattr(profile, 'query_comment'):
106
110
  setattr(profile, 'query_comment', QueryComment())
107
111
  profile.query_comment.append = True
108
- super().__init__(profile)
112
+ super().__init__(profile, mp_context)
109
113
 
110
114
  def __str__(self) -> str:
111
115
  return 'FireboltConnectionManager()'
@@ -181,9 +185,7 @@ class FireboltConnectionManager(SQLConnectionManager):
181
185
 
182
186
  def cancel(self, connection: Connection) -> None:
183
187
  """Cancel the last query on the given connection."""
184
- raise dbt.exceptions.NotImplementedError(
185
- '`cancel` is not implemented for this adapter!'
186
- )
188
+ raise NotImplementedError('`cancel` is not implemented for this adapter!')
187
189
 
188
190
  @classmethod
189
191
  def data_type_code_to_name( # type: ignore[override] # FIR-29423
@@ -5,9 +5,8 @@ from datetime import datetime
5
5
  from typing import Any, List, Mapping, Optional, Union
6
6
 
7
7
  import agate
8
- from dbt.adapters.base import available # type: ignore
9
- from dbt.adapters.base.impl import AdapterConfig # type: ignore
10
8
  from dbt.adapters.base.impl import ConstraintSupport
9
+ from dbt.adapters.base.meta import available
11
10
  from dbt.adapters.base.relation import BaseRelation
12
11
  from dbt.adapters.capability import (
13
12
  Capability,
@@ -15,10 +14,11 @@ from dbt.adapters.capability import (
15
14
  CapabilitySupport,
16
15
  Support,
17
16
  )
18
- from dbt.adapters.sql import SQLAdapter # type: ignore
19
- from dbt.contracts.graph.nodes import ConstraintType
20
- from dbt.dataclass_schema import ValidationError, dbtClassMixin
21
- from dbt.exceptions import (
17
+ from dbt.adapters.protocol import AdapterConfig
18
+ from dbt.adapters.sql.impl import SQLAdapter
19
+ from dbt_common.contracts.constraints import ConstraintType
20
+ from dbt_common.dataclass_schema import ValidationError, dbtClassMixin
21
+ from dbt_common.exceptions import (
22
22
  CompilationError,
23
23
  DbtRuntimeError,
24
24
  NotImplementedError,
@@ -1,10 +1,10 @@
1
1
  from dataclasses import dataclass, field
2
2
  from typing import Dict, FrozenSet, Optional
3
3
 
4
- from dbt.adapters.base import RelationType # type: ignore
5
- from dbt.adapters.base.relation import BaseRelation, Policy # type: ignore
6
- from dbt.adapters.relation_configs import RelationConfigBase # type: ignore
7
- from dbt.exceptions import DbtRuntimeError
4
+ from dbt.adapters.base.relation import BaseRelation
5
+ from dbt.adapters.contracts.relation import Policy, RelationType
6
+ from dbt.adapters.relation_configs.config_base import RelationConfigBase
7
+ from dbt_common.exceptions import DbtRuntimeError
8
8
 
9
9
 
10
10
  @dataclass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbt-firebolt
3
- Version: 1.7.0
3
+ Version: 1.8.0
4
4
  Summary: The Firebolt adapter plugin for dbt (data build tool)
5
5
  Home-page: https://github.com/firebolt-db/dbt-firebolt
6
6
  Author: Firebolt
@@ -1,5 +1,6 @@
1
- dbt-core<1.8,~=1.6
2
- firebolt-sdk>=1.1.0
1
+ dbt-adapters<2.0,>=1.0
2
+ dbt-core>=1.8.0
3
+ firebolt-sdk>=1.5.0
3
4
  pydantic>=0.23
4
5
 
5
6
  [dev]
@@ -22,8 +22,9 @@ project_urls =
22
22
  [options]
23
23
  packages = find_namespace:
24
24
  install_requires =
25
- dbt-core~=1.6,<1.8
26
- firebolt-sdk>=1.1.0
25
+ dbt-adapters>=1.0,<2.0
26
+ dbt-core>=1.8.0
27
+ firebolt-sdk>=1.5.0
27
28
  pydantic>=0.23
28
29
  python_requires = >=3.8
29
30
  include_package_data = True
File without changes
File without changes
File without changes