Skip to content

Commit 3093c5e

Browse files
committed
fix return type
1 parent 6f09287 commit 3093c5e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bigframes/operations/ai_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def output_type(self, *input_types: dtypes.ExpressionType) -> dtypes.ExpressionT
4040
pa.struct(
4141
(
4242
pa.field("result", pa.bool_()),
43-
pa.field("full_response", pa.string()),
43+
pa.field("full_response", dtypes.JSON_ARROW_TYPE),
4444
pa.field("status", pa.string()),
4545
)
4646
)

tests/system/small/bigquery/test_ai.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import pyarrow as pa
1919
import pytest
2020

21-
from bigframes import series
21+
from bigframes import dtypes, series
2222
import bigframes.bigquery as bbq
2323
import bigframes.pandas as bpd
2424

@@ -35,7 +35,7 @@ def test_ai_generate_bool(session):
3535
pa.struct(
3636
(
3737
pa.field("result", pa.bool_()),
38-
pa.field("full_response", pa.string()),
38+
pa.field("full_response", dtypes.JSON_ARROW_TYPE),
3939
pa.field("status", pa.string()),
4040
)
4141
)
@@ -54,7 +54,7 @@ def test_ai_generate_bool_with_pandas(session):
5454
pa.struct(
5555
(
5656
pa.field("result", pa.bool_()),
57-
pa.field("full_response", pa.string()),
57+
pa.field("full_response", dtypes.JSON_ARROW_TYPE),
5858
pa.field("status", pa.string()),
5959
)
6060
)
@@ -81,7 +81,7 @@ def test_ai_generate_bool_with_model_params(session):
8181
pa.struct(
8282
(
8383
pa.field("result", pa.bool_()),
84-
pa.field("full_response", pa.string()),
84+
pa.field("full_response", dtypes.JSON_ARROW_TYPE),
8585
pa.field("status", pa.string()),
8686
)
8787
)
@@ -100,7 +100,7 @@ def test_ai_generate_bool_multi_model(session):
100100
pa.struct(
101101
(
102102
pa.field("result", pa.bool_()),
103-
pa.field("full_response", pa.string()),
103+
pa.field("full_response", dtypes.JSON_ARROW_TYPE),
104104
pa.field("status", pa.string()),
105105
)
106106
)

0 commit comments

Comments
 (0)