Skip to content

Improve MySQL type mapping tests#11382

Merged
ebyhr merged 2 commits intotrinodb:masterfrom
tangjiangling:separate-mysql-testBasicTypes
Mar 10, 2022
Merged

Improve MySQL type mapping tests#11382
ebyhr merged 2 commits intotrinodb:masterfrom
tangjiangling:separate-mysql-testBasicTypes

Conversation

@tangjiangling
Copy link
Copy Markdown
Member

@tangjiangling tangjiangling commented Mar 9, 2022

This commit includes:

  • Add separate tests for MySQL tinyint/smallint/integer/bigint
  • Add min/max/min-1/max+1 test cases
  • Cover more tests using trinoCreateAndInsert in TestMySqlTypeMapping
  • Remove unnecessary tpch from tableNamePrefix
  • Reuse trinoCreateAndInsert in TestMySqlTypeMapping
  • Remove duplicate characters

Description

Is this change a fix, improvement, new feature, refactoring, or other?

Improvement.

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

MySQL type mapping tests.

How would you describe this change to a non-technical end user or system administrator?

N/A.

Related issues, pull requests, and links

Related #11181

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(x) No release notes entries required.
( ) Release notes entries required with the following suggested text:

@tangjiangling tangjiangling force-pushed the separate-mysql-testBasicTypes branch from c56faa0 to b554ef9 Compare March 9, 2022 06:07
@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Mar 9, 2022

@tangjiangling CI failure looks related.

@tangjiangling
Copy link
Copy Markdown
Member Author

@ebyhr @hashhar Got it, I'll take a look.

This commit includes:

- Add separate tests for MySQL tinyint/smallint/integer/bigint
- Add min/max/min-1/max+1 test cases
- Cover more tests using trinoCreateAndInsert in TestMySqlTypeMapping
- Remove unnecessary tpch from tableNamePrefix
- Reuse trinoCreateAndInsert in TestMySqlTypeMapping
- Remove duplicate characters
@tangjiangling tangjiangling force-pushed the separate-mysql-testBasicTypes branch from b554ef9 to 874dcb1 Compare March 9, 2022 10:48
@tangjiangling
Copy link
Copy Markdown
Member Author

CI (maven-checks 11/17) https://github.com/trinodb/trino/runs/5478810967?check_suite_focus=true

Fixed by #11393

I'll push an empty commit to retrigger the CI.

@ebyhr ebyhr merged commit b123e5c into trinodb:master Mar 10, 2022
@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Mar 10, 2022

Merged, thanks!

@tangjiangling tangjiangling deleted the separate-mysql-testBasicTypes branch March 10, 2022 06:04
@github-actions github-actions bot added this to the 374 milestone Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants