Skip to content

feat: Add support for custom OceanBase query hints#92

Merged
yuanoOo merged 3 commits intooceanbase:mainfrom
yuanoOo:option-hint
Jan 26, 2026
Merged

feat: Add support for custom OceanBase query hints#92
yuanoOo merged 3 commits intooceanbase:mainfrom
yuanoOo:option-hint

Conversation

@yuanoOo
Copy link
Collaborator

@yuanoOo yuanoOo commented Jan 21, 2026

Summary

  • Introduce new configuration option jdbc.query-hint-degree to allow users to specify additional OceanBase query hints
  • Support multiple hints separated by spaces, e.g., 'READ_CONSISTENCY(WEAK) query_timeout(10000000)'
  • Integrate with OBJdbcReader to append custom hints to SELECT query statements
  • Available from version 1.4.0 onwards
  • Default value is empty string for backward compatibility

This enhancement provides users with fine-grained control over query optimization hints when accessing OceanBase via Spark, enabling better performance tuning for specific use cases.

Solution Description

- Introduce new configuration option `jdbc.query-hint-degree` to allow users to specify additional OceanBase query hints
- Support multiple hints separated by spaces, e.g., 'READ_CONSISTENCY(WEAK) query_timeout(10000000)'
- Integrate with OBJdbcReader to append custom hints to SELECT query statements
- Available from version 1.4.0 onwards
- Default value is empty string for backward compatibility

This enhancement provides users with fine-grained control over query optimization hints when accessing OceanBase via Spark, enabling better performance tuning for specific use cases.
@yuanoOo yuanoOo merged commit 54c6c4c into oceanbase:main Jan 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants