-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): fix Serial in Fields derive and add tests (#13926)
Signed-off-by: TennyZhuang <[email protected]>
- Loading branch information
1 parent
ad2073f
commit 52632ae
Showing
5 changed files
with
76 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
impl ::risingwave_common::types::Fields for Data { | ||
fn fields() -> Vec<(&'static str, ::risingwave_common::types::DataType)> { | ||
vec![ | ||
("v1", < i16 as ::risingwave_common::types::WithDataType > | ||
::default_data_type()), ("v2", < std::primitive::i32 as | ||
::risingwave_common::types::WithDataType > ::default_data_type()), ("v3", < | ||
bool as ::risingwave_common::types::WithDataType > ::default_data_type()), | ||
("v4", < Serial as ::risingwave_common::types::WithDataType > | ||
::default_data_type()) | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters