File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
tests/sqllogictests/suites/base/06_show Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ use crate::DataSchema;
35
35
const UDF_TCP_KEEP_ALIVE_SEC : u64 = 30 ;
36
36
const UDF_HTTP2_KEEP_ALIVE_INTERVAL_SEC : u64 = 60 ;
37
37
const UDF_KEEP_ALIVE_TIMEOUT_SEC : u64 = 20 ;
38
+ const MAX_DECODING_MESSAGE_SIZE : usize = 16 * 1024 * 1024 * 1024 ;
38
39
39
40
#[ derive( Debug , Clone ) ]
40
41
pub struct UDFFlightClient {
@@ -65,7 +66,9 @@ impl UDFFlightClient {
65
66
ErrorCode :: UDFServerConnectError ( format ! (
66
67
"Cannot connect to UDF Server {addr}: {err}"
67
68
) )
68
- } ) ?;
69
+ } ) ?
70
+ . max_decoding_message_size ( MAX_DECODING_MESSAGE_SIZE ) ;
71
+
69
72
Ok ( UDFFlightClient { inner } )
70
73
}
71
74
Original file line number Diff line number Diff line change @@ -131,13 +131,13 @@ impl DefaultSettings {
131
131
value : UserSettingValue :: UInt64 ( 65536 ) ,
132
132
desc : "Sets the maximum byte size of a single data block that can be read." ,
133
133
mode : SettingMode :: Both ,
134
- range : None ,
134
+ range : Some ( SettingRange :: Numeric ( 1 ..=u64 :: MAX ) ) ,
135
135
} ) ,
136
136
( "parquet_max_block_size" , DefaultSettingValue {
137
137
value : UserSettingValue :: UInt64 ( 8192 ) ,
138
138
desc : "Max block size for parquet reader" ,
139
139
mode : SettingMode :: Both ,
140
- range : None ,
140
+ range : Some ( SettingRange :: Numeric ( 1 ..=u64 :: MAX ) ) ,
141
141
} ) ,
142
142
( "max_threads" , DefaultSettingValue {
143
143
value : UserSettingValue :: UInt64 ( num_cpus) ,
Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ SHOW SETTINGS LIKE 'enable%'
31
31
query TT
32
32
SHOW SETTINGS LIKE 'max%' LIMIT 1
33
33
----
34
- max_block_size 65536 65536 None DEFAULT Sets the maximum byte size of a single data block that can be read. UInt64
34
+ max_block_size 65536 65536 [1, 18446744073709551615] DEFAULT Sets the maximum byte size of a single data block that can be read. UInt64
35
35
36
36
query TT
37
37
SHOW SETTINGS WHERE name='max_block_size' LIMIT 1
38
38
----
39
- max_block_size 65536 65536 None DEFAULT Sets the maximum byte size of a single data block that can be read. UInt64
39
+ max_block_size 65536 65536 [1, 18446744073709551615] DEFAULT Sets the maximum byte size of a single data block that can be read. UInt64
40
40
41
41
statement error
42
42
SHOW SETTINGS ilike 'ff%' LIMIT 1
You can’t perform that action at this time.
0 commit comments