Skip to content

Commit 82d4382

Browse files
authored
chore: fix experimental max_batching_rows default number (#1426)
fix #1422
1 parent 45e442d commit 82d4382

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

bigframes/operations/blob.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def image_blur(
278278
*,
279279
dst: Optional[Union[str, bigframes.series.Series]] = None,
280280
connection: Optional[str] = None,
281-
max_batching_rows: int = 8096,
281+
max_batching_rows: int = 8192,
282282
container_cpu: Union[float, int] = 0.33,
283283
container_memory: str = "512Mi",
284284
) -> bigframes.series.Series:
@@ -291,7 +291,7 @@ def image_blur(
291291
ksize (tuple(int, int)): Kernel size.
292292
dst (str or bigframes.series.Series or None, default None): Destination GCS folder str or blob series. If None, output to BQ as bytes.
293293
connection (str or None, default None): BQ connection used for function internet transactions, and the output blob if "dst" is str. If None, uses default connection of the session.
294-
max_batching_rows (int, default 8,096): Max number of rows per batch send to cloud run to execute the function.
294+
max_batching_rows (int, default 8,192): Max number of rows per batch send to cloud run to execute the function.
295295
container_cpu (int or float, default 0.33): number of container CPUs. Possible values are [0.33, 8]. Floats larger than 1 are cast to intergers.
296296
container_memory (str, default "512Mi"): container memory size. String of the format <number><unit>. Possible values are from 512Mi to 32Gi.
297297
@@ -354,7 +354,7 @@ def image_resize(
354354
fy: float = 0.0,
355355
dst: Optional[Union[str, bigframes.series.Series]] = None,
356356
connection: Optional[str] = None,
357-
max_batching_rows: int = 8096,
357+
max_batching_rows: int = 8192,
358358
container_cpu: Union[float, int] = 0.33,
359359
container_memory: str = "512Mi",
360360
):
@@ -369,7 +369,7 @@ def image_resize(
369369
fy (float, defalut 0.0): scale factor along the vertical axis. If set to 0.0, dsize parameter determines the output size.
370370
dst (str or bigframes.series.Series or None, default None): Destination GCS folder str or blob series. If None, output to BQ as bytes.
371371
connection (str or None, default None): BQ connection used for function internet transactions, and the output blob if "dst" is str. If None, uses default connection of the session.
372-
max_batching_rows (int, default 8,096): Max number of rows per batch send to cloud run to execute the function.
372+
max_batching_rows (int, default 8,192): Max number of rows per batch send to cloud run to execute the function.
373373
container_cpu (int or float, default 0.33): number of container CPUs. Possible values are [0.33, 8]. Floats larger than 1 are cast to intergers.
374374
container_memory (str, default "512Mi"): container memory size. String of the format <number><unit>. Possible values are from 512Mi to 32Gi.
375375
@@ -441,7 +441,7 @@ def image_normalize(
441441
norm_type: str = "l2",
442442
dst: Optional[Union[str, bigframes.series.Series]] = None,
443443
connection: Optional[str] = None,
444-
max_batching_rows: int = 8096,
444+
max_batching_rows: int = 8192,
445445
container_cpu: Union[float, int] = 0.33,
446446
container_memory: str = "512Mi",
447447
) -> bigframes.series.Series:
@@ -456,7 +456,7 @@ def image_normalize(
456456
norm_type (str, default "l2"): Normalization type. Accepted values are "inf", "l1", "l2" and "minmax".
457457
dst (str or bigframes.series.Series or None, default None): Destination GCS folder str or blob series. If None, output to BQ as bytes.
458458
connection (str or None, default None): BQ connection used for function internet transactions, and the output blob if "dst" is str. If None, uses default connection of the session.
459-
max_batching_rows (int, default 8,096): Max number of rows per batch send to cloud run to execute the function.
459+
max_batching_rows (int, default 8,192): Max number of rows per batch send to cloud run to execute the function.
460460
container_cpu (int or float, default 0.33): number of container CPUs. Possible values are [0.33, 8]. Floats larger than 1 are cast to intergers.
461461
container_memory (str, default "512Mi"): container memory size. String of the format <number><unit>. Possible values are from 512Mi to 32Gi.
462462
@@ -519,7 +519,7 @@ def pdf_extract(
519519
self,
520520
*,
521521
connection: Optional[str] = None,
522-
max_batching_rows: int = 8096,
522+
max_batching_rows: int = 8192,
523523
container_cpu: Union[float, int] = 0.33,
524524
container_memory: str = "512Mi",
525525
) -> bigframes.series.Series:
@@ -534,7 +534,7 @@ def pdf_extract(
534534
connection (str or None, default None): BQ connection used for
535535
function internet transactions, and the output blob if "dst"
536536
is str. If None, uses default connection of the session.
537-
max_batching_rows (int, default 8,096): Max number of rows per batch
537+
max_batching_rows (int, default 8,192): Max number of rows per batch
538538
send to cloud run to execute the function.
539539
container_cpu (int or float, default 0.33): number of container CPUs. Possible values are [0.33, 8]. Floats larger than 1 are cast to intergers.
540540
container_memory (str, default "512Mi"): container memory size. String of the format <number><unit>. Possible values are from 512Mi to 32Gi.
@@ -566,7 +566,7 @@ def pdf_chunk(
566566
connection: Optional[str] = None,
567567
chunk_size: int = 1000,
568568
overlap_size: int = 200,
569-
max_batching_rows: int = 8096,
569+
max_batching_rows: int = 8192,
570570
container_cpu: Union[float, int] = 0.33,
571571
container_memory: str = "512Mi",
572572
) -> bigframes.series.Series:
@@ -586,7 +586,7 @@ def pdf_chunk(
586586
overlap_size (int, default 200): the number of overlapping characters
587587
between consective chunks. The helps to ensure context is
588588
perserved across chunk boundaries.
589-
max_batching_rows (int, default 8,096): Max number of rows per batch
589+
max_batching_rows (int, default 8,192): Max number of rows per batch
590590
send to cloud run to execute the function.
591591
container_cpu (int or float, default 0.33): number of container CPUs. Possible values are [0.33, 8]. Floats larger than 1 are cast to intergers.
592592
container_memory (str, default "512Mi"): container memory size. String of the format <number><unit>. Possible values are from 512Mi to 32Gi.

0 commit comments

Comments
 (0)