-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sqlsmith): test struct
and list
#5951
Conversation
This PR has been open for 60 days with no activity. Could you please update the status? Feel free to ping a reviewer if you are waiting for review. |
What sort of type tests are introduced in particular? Or what tests are planned to be introduced in this PR? Currently just see more seed tables. |
because we can have all kinds of composite types and nested types, so only randomization can cover more of them I guess? |
That makes sense. |
* Custom datatype allows us to generate more variants for enum with fields
7848318
to
1886a12
Compare
1886a12
to
0fff740
Compare
9966a1d
to
6f6e531
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has totally checked 2595 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
1244 | 1 | 1350 | 0 |
Click to see the invalid file list
- src/tests/sqlsmith/src/sql_gen/types.rs
@@ -0,0 +1,148 @@ | |||
// Copyright 2022 Singularity Data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Copyright 2022 Singularity Data | |
// Copyright 2023 Singularity Data | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
// See the License for the specific language governing permissions and | |
// limitations under the License. | |
// Copyright 2022 Singularity Data |
struct
and list
# Conflicts: # src/tests/sqlsmith/src/sql_gen/scalar.rs # src/tests/sqlsmith/src/sql_gen/utils.rs
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
Add more input types to sqlsmith (
struct
,list
).Motivation for refactoring
DataTypeName
DataTypeName
internally to indicate which expressions to generate.struct
andlist
internal types.DataType
directly.struct
andlist
exprs #7132.Misc
struct
with multiple fields inCASE
expression #7189Checklist
Fix struct (name fields are missing)expected../risedev check
(or alias,./risedev c
)Documentation
If your pull request contains user-facing changes, please specify the types of the changes, and create a release note. Otherwise, please feel free to remove this section.
Types of user-facing changes
Please keep the types that apply to your changes, and remove those that do not apply.
Release note
Please create a release note for your changes. In the release note, focus on the impact on users, and mention the environment or conditions where the impact may occur.
Refer to a related PR or issue link (optional)
#7132