Commit fa76e31
feat: Add ExternalRuntimeOptions to BigQuery routine (#2311)
* feat: Add ExternalRuntimeOptions to BigQuery routine
This change introduces the `ExternalRuntimeOptions` class to the
`google.cloud.bigquery.routine` module, allowing users to configure
runtime options for external routines.
Key changes:
- Created the `ExternalRuntimeOptions` class with setters and getters for
`container_memory`, `container_cpu`, `runtime_connection`,
`max_batching_rows`, and `runtime_version`.
- Updated the `Routine` class to include an `external_runtime_options`
property that accepts an `ExternalRuntimeOptions` object.
- Added comprehensive unit tests for the new class and its integration
with the `Routine` class, including tests for both valid and invalid
input values.
* Update google/cloud/bigquery/routine/routine.py
* feat: Add ExternalRuntimeOptions to BigQuery routine
This change introduces the `ExternalRuntimeOptions` class to the
`google.cloud.bigquery.routine` module, allowing users to configure
runtime options for external routines.
Key changes:
- Created the `ExternalRuntimeOptions` class with setters and getters for
`container_memory`, `container_cpu`, `runtime_connection`,
`max_batching_rows`, and `runtime_version`.
- Updated the `Routine` class to include an `external_runtime_options`
property that accepts an `ExternalRuntimeOptions` object.
- Added comprehensive unit tests for the new class and its integration
with the `Routine` class, including tests for both valid and invalid
input values.
* feat: Add ExternalRuntimeOptions to BigQuery routine
This change introduces the `ExternalRuntimeOptions` class to the
`google.cloud.bigquery.routine` module, allowing users to configure
runtime options for external routines.
Key changes:
- Created the `ExternalRuntimeOptions` class with setters and getters for
`container_memory`, `container_cpu`, `runtime_connection`,
`max_batching_rows`, and `runtime_version`.
- Updated the `Routine` class to include an `external_runtime_options`
property that accepts an `ExternalRuntimeOptions` object.
- Added comprehensive unit tests for the new class and its integration
with the `Routine` class, including tests for both valid and invalid
input values.
- Added additional tests to improve code coverage based on feedback.
* feat: Add ExternalRuntimeOptions to BigQuery routine
This change introduces the `ExternalRuntimeOptions` class to the
`google.cloud.bigquery.routine` module, allowing users to configure
runtime options for external routines.
Key changes:
- Created the `ExternalRuntimeOptions` class with setters and getters for
`container_memory`, `container_cpu`, `runtime_connection`,
`max_batching_rows`, and `runtime_version`.
- Updated the `Routine` class to include an `external_runtime_options`
property that accepts an `ExternalRuntimeOptions` object.
- Added comprehensive unit tests for the new class and its integration
with the `Routine` class, including tests for both valid and invalid
input values.
- Added additional tests to improve code coverage based on feedback.
- Addressed PyType errors by using helper functions for type conversion.
* Update tests/unit/routine/test_external_runtime_options.py
* feat: Add ExternalRuntimeOptions to BigQuery routine
This change introduces the `ExternalRuntimeOptions` class to the
`google.cloud.bigquery.routine` module, allowing users to configure
runtime options for external routines.
Key changes:
- Created the `ExternalRuntimeOptions` class with setters and getters for
`container_memory`, `container_cpu`, `runtime_connection`,
`max_batching_rows`, and `runtime_version`.
- Updated the `Routine` class to include an `external_runtime_options`
property that accepts an `ExternalRuntimeOptions` object.
- Added comprehensive unit tests for the new class and its integration
with the `Routine` class, including tests for both valid and invalid
input values.
- Added additional tests to improve code coverage based on feedback.
- Addressed PyType errors by using helper functions for type conversion.
- Addressed formatting nits from code review.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
Co-authored-by: Lingqing Gan <lingqing.gan@gmail.com>1 parent 7fbd8c2 commit fa76e31
File tree
5 files changed
+421
-1
lines changed- google/cloud/bigquery
- routine
- tests/unit/routine
5 files changed
+421
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
352 | 384 | | |
353 | 385 | | |
354 | 386 | | |
| |||
736 | 768 | | |
737 | 769 | | |
738 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
0 commit comments