Skip to content

Commit f247df7

Browse files
committed
cqle: add Float/Double overload deprecation to upgrade guide
1 parent 101a4ab commit f247df7

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/api/cassandra/cqlengine/columns.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Columns of all types are initialized by passing :class:`.Column` attributes to t
5858

5959
.. autoclass:: Decimal(**kwargs)
6060

61-
.. autoclass:: Double
61+
.. autoclass:: Double(**kwargs)
6262

6363
.. autoclass:: Float
6464

docs/cqlengine/upgrade_guide.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ This upgrade served as a good juncture to deprecate certain API features and inv
7979
to new ones. The first released version does not change functionality -- only introduces deprecation
8080
warnings. Future releases will remove these features in favor of the alternatives.
8181

82+
Float/Double Overload
83+
---------------------
84+
Previously there was no ``Double`` column type. Doubles were modeled by specifying ``Float(double_precision=True)``.
85+
This inititializer parameter is now deprecated. Applications should use :class:`~.columns.Double` for CQL ``double``, and :class:`~.columns.Float`
86+
for CQL ``float``.
87+
8288
Schema Management
8389
-----------------
8490
``cassandra.cqlengine.management.create_keyspace`` is deprecated. Instead, use the new replication-strategy-specific

0 commit comments

Comments
 (0)