Skip to content
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

[fix](jdbc catalog) fix and add mysql and doris extremum test #41679

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zy-kkk
Copy link
Member

@zy-kkk zy-kkk commented Oct 10, 2024

1、add mysql jdbc catalog extremum test
2、mysql jdbc catalog time data outside the 24-hour range can be read
3、add doris jdbc catalog extremum test
4、fix doris jdbc catalog char type max size match
5、fix doris jdbc catalog nested array read

Legacy:
Doris float extreme values ​​are incorrect 3.4028235e+38, -3.4028235e+38
Correct values ​​should be 3.4028234e+38, -3.4028234e+38. The incorrect value will exceed the Java float range, so ignore this test and add it after it is fixed

This PR also followup #40122
Adds requiredColumnSize() and requiredDecimalDigits() methods to JdbcFieldSchema, improving error handling by throwing exceptions when values are absent.

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zy-kkk
Copy link
Member Author

zy-kkk commented Oct 10, 2024

run buildall

@morningman morningman changed the title [test](jdbc catalog) add mysql and doris extremum test [fix](jdbc catalog) fix and add mysql and doris extremum test Oct 10, 2024
return resultSet.getObject(columnIndex + 1);
case STRING: {
int jdbcType = resultSetMetaData.getColumnType(columnIndex + 1);
if (jdbcType == Types.TIME) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some comment to explain this if else

qt_select_char """select * from t_char order by 1;"""

sql """set dry_run_query=true"""
qt_select_all_types_multi_block """select * from all_types_multi_block;"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use select count(k1), count(k2), and remove dry_run_query

@zy-kkk
Copy link
Member Author

zy-kkk commented Oct 10, 2024

run buildall

@zy-kkk
Copy link
Member Author

zy-kkk commented Oct 10, 2024

run buildall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants