1818import pyarrow as pa
1919import pytest
2020
21- from bigframes import series
21+ from bigframes import dtypes , series
2222import bigframes .bigquery as bbq
2323import 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