File tree 1 file changed +7
-6
lines changed 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -451,11 +451,12 @@ impl Parseable {
451
451
. await ;
452
452
}
453
453
454
- let time_partition_in_days = if !time_partition_limit. is_empty ( ) {
455
- Some ( validate_time_partition_limit ( & time_partition_limit) ?)
456
- } else {
457
- None
458
- } ;
454
+ if !time_partition. is_empty ( ) || !time_partition_limit. is_empty ( ) {
455
+ return Err ( StreamError :: Custom {
456
+ msg : "Creating stream with time partition is not supported anymore" . to_string ( ) ,
457
+ status : StatusCode :: BAD_REQUEST ,
458
+ } ) ;
459
+ }
459
460
460
461
if let Some ( custom_partition) = & custom_partition {
461
462
validate_custom_partition ( custom_partition) ?;
@@ -479,7 +480,7 @@ impl Parseable {
479
480
self . create_stream (
480
481
stream_name. to_string ( ) ,
481
482
& time_partition,
482
- time_partition_in_days ,
483
+ None ,
483
484
custom_partition. as_ref ( ) ,
484
485
static_schema_flag,
485
486
schema,
You can’t perform that action at this time.
0 commit comments