Skip to content

Commit 6df7534

Browse files
authored
Release 1.3.4 (#367)
* fix: Cassandra config keys (#366)
1 parent f1d4626 commit 6df7534

File tree

11 files changed

+38
-35
lines changed

11 files changed

+38
-35
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Preferably use **Added**, **Changed**, **Removed** and **Fixed** topics in each
55

66
## [Unreleased]
77

8+
## [1.3.4](https://github.com/quintoandar/butterfree/releases/tag/1.3.4)
9+
* Fix Cassandra Config and tests ([#366](https://github.com/quintoandar/butterfree/pull/366))
10+
811
## [1.3.3](https://github.com/quintoandar/butterfree/releases/tag/1.3.3)
912
* Fix Cassandra Config and Numpy version ([#364](https://github.com/quintoandar/butterfree/pull/364))
1013

butterfree/configs/db/cassandra_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ def translate(self, schema: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
238238
"integertype": "int",
239239
"longtype": "bigint",
240240
"stringtype": "text",
241-
"arraytype(longtype,true)": "frozen<list<bigint>>",
242-
"arraytype(stringtype,true)": "frozen<list<text>>",
243-
"arraytype(floattype,true)": "frozen<list<float>>",
241+
"arraytype(longtype, true)": "frozen<list<bigint>>",
242+
"arraytype(stringtype, true)": "frozen<list<text>>",
243+
"arraytype(floattype, true)": "frozen<list<float>>",
244244
}
245245
cassandra_schema = []
246246
for features in schema:

docs/source/butterfree.configs.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ butterfree.configs.logger module
3838
:undoc-members:
3939
:show-inheritance:
4040

41+
.. automodule:: butterfree.configs.logger
42+
:members:
43+
:undoc-members:
44+
:show-inheritance:
45+
4146
Module contents
4247
---------------
4348

docs/source/butterfree.constants.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ butterfree.constants.spark\_constants module
4343
:show-inheritance:
4444

4545

46+
.. automodule:: butterfree.constants.migrations
47+
:members:
48+
:undoc-members:
49+
:show-inheritance:
50+
51+
4652
.. automodule:: butterfree.constants.spark_constants
4753
:members:
4854
:undoc-members:
@@ -66,6 +72,11 @@ butterfree.constants.window\_definitions module
6672
:undoc-members:
6773
:show-inheritance:
6874

75+
.. automodule:: butterfree.constants.window_definitions
76+
:members:
77+
:undoc-members:
78+
:show-inheritance:
79+
6980
Module contents
7081
---------------
7182

docs/source/butterfree.dataframe_service.rst

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,12 @@ butterfree.dataframe\_service package
44
Submodules
55
----------
66

7-
butterfree.dataframe\_service.incremental\_strategy module
8-
----------------------------------------------------------
97

108
.. automodule:: butterfree.dataframe_service.incremental_strategy
119
:members:
1210
:undoc-members:
1311
:show-inheritance:
1412

15-
butterfree.dataframe\_service.partitioning module
16-
-------------------------------------------------
17-
18-
.. automodule:: butterfree.dataframe_service.partitioning
19-
:members:
20-
:undoc-members:
21-
:show-inheritance:
22-
23-
butterfree.dataframe\_service.repartition module
24-
------------------------------------------------
25-
26-
.. automodule:: butterfree.dataframe_service.incremental_strategy
27-
:members:
28-
:undoc-members:
29-
:show-inheritance:
3013

3114
.. automodule:: butterfree.dataframe_service.partitioning
3215
:members:

docs/source/butterfree.hooks.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@ Subpackages
1212
Submodules
1313
----------
1414

15-
butterfree.hooks.hook module
16-
----------------------------
1715

1816
.. automodule:: butterfree.hooks.hook
1917
:members:
2018
:undoc-members:
2119
:show-inheritance:
2220

23-
butterfree.hooks.hookable\_component module
24-
-------------------------------------------
2521

2622
.. automodule:: butterfree.hooks.hookable_component
2723
:members:

docs/source/butterfree.hooks.schema_compatibility.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ butterfree.hooks.schema\_compatibility package
44
Submodules
55
----------
66

7-
butterfree.hooks.schema\_compatibility.cassandra\_table\_schema\_compatibility\_hook module
8-
-------------------------------------------------------------------------------------------
97

108
.. automodule:: butterfree.hooks.schema_compatibility.cassandra_table_schema_compatibility_hook
119
:members:
1210
:undoc-members:
1311
:show-inheritance:
1412

15-
butterfree.hooks.schema\_compatibility.spark\_table\_schema\_compatibility\_hook module
16-
---------------------------------------------------------------------------------------
1713

1814
.. automodule:: butterfree.hooks.schema_compatibility.spark_table_schema_compatibility_hook
1915
:members:

docs/source/butterfree.migrations.database_migration.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,18 @@ butterfree.migrations.database\_migration package
44
Submodules
55
----------
66

7-
---------------------------------------------------------------------
87

98
.. automodule:: butterfree.migrations.database_migration.cassandra_migration
109
:members:
1110
:undoc-members:
1211
:show-inheritance:
1312

14-
butterfree.migrations.database\_migration.database\_migration module
15-
--------------------------------------------------------------------
1613

1714
.. automodule:: butterfree.migrations.database_migration.database_migration
1815
:members:
1916
:undoc-members:
2017
:show-inheritance:
2118

22-
butterfree.migrations.database\_migration.metastore\_migration module
23-
---------------------------------------------------------------------
2419

2520
.. automodule:: butterfree.migrations.database_migration.metastore_migration
2621
:members:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import find_packages, setup
22

33
__package_name__ = "butterfree"
4-
__version__ = "1.3.3"
4+
__version__ = "1.3.4"
55
__repository_url__ = "https://github.com/quintoandar/butterfree"
66

77
with open("requirements.txt") as f:

tests/unit/butterfree/migrations/database_migration/conftest.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
from pyspark.sql.types import DoubleType, FloatType, LongType, TimestampType
1+
from pyspark.sql.types import (
2+
ArrayType,
3+
DoubleType,
4+
FloatType,
5+
LongType,
6+
StringType,
7+
TimestampType,
8+
)
29
from pytest import fixture
310

411
from butterfree.constants import DataType
@@ -30,6 +37,11 @@ def fs_schema():
3037
{"column_name": "id", "type": LongType(), "primary_key": True},
3138
{"column_name": "timestamp", "type": TimestampType(), "primary_key": True},
3239
{"column_name": "new_feature", "type": FloatType(), "primary_key": False},
40+
{
41+
"column_name": "array_feature",
42+
"type": ArrayType(StringType(), True),
43+
"primary_key": False,
44+
},
3345
{
3446
"column_name": "feature1__avg_over_1_week_rolling_windows",
3547
"type": FloatType(),

0 commit comments

Comments
 (0)