@@ -155,11 +155,10 @@ class Config:
155155 .. note::
156156 Column type depends on :obj:`~partitioning_mode`.
157157
158- * ``partitioning_mode="range"`` requires column to be an integer or date (can be NULL, but not recommended).
159- * ``partitioning_mode="hash"`` requires column to be an string (NOT NULL).
158+ * ``partitioning_mode="range"`` requires column to be an integer, date or timestamp (can be NULL, but not recommended).
159+ * ``partitioning_mode="hash"`` accepts any column type (NOT NULL).
160160 * ``partitioning_mode="mod"`` requires column to be an integer (NOT NULL).
161161
162-
163162 See documentation for :obj:`~partitioning_mode` for more details"""
164163
165164 num_partitions : PositiveInt = Field (default = 1 , alias = "numPartitions" )
@@ -256,6 +255,10 @@ class Config:
256255
257256 Where ``stride=(upper_bound - lower_bound) / num_partitions``.
258257
258+ .. note::
259+
260+ Can be used only with columns of integer, date or timestamp types.
261+
259262 .. note::
260263
261264 :obj:`~lower_bound`, :obj:`~upper_bound` and :obj:`~num_partitions` are used just to
@@ -297,7 +300,7 @@ class Config:
297300 .. note::
298301
299302 The hash function implementation depends on RDBMS. It can be ``MD5`` or any other fast hash function,
300- or expression based on this function call.
303+ or expression based on this function call. Usually such functions accepts any column type as an input.
301304
302305 * ``mod``
303306 Allocate each executor a set of values based on modulus of the :obj:`~partition_column` column.
@@ -325,6 +328,10 @@ class Config:
325328 SELECT ... FROM table
326329 WHERE (partition_column mod num_partitions) = num_partitions-1 -- upper_bound
327330
331+ .. note::
332+
333+ Can be used only with columns of integer type.
334+
328335 .. versionadded:: 0.5.0
329336
330337 Examples
0 commit comments