SAP HANA DATABASE Source support improvement[优化SAPhana数据库的支持] #1959
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
SAP HANA数据作为SAP ERP的数据库,内部有数量巨大的表数据,使用supersonic进行数据挖掘与探索也会不一个不错的选择,在目前的测试中发现SAP HANA数据库中存在以下与普通数据库不兼容的地方:
在此交提交修正有以下的调整:
另外修改一个使用zhipu模型embedding时,程序报错缺少对应的时间设置参数,只是简单的增加默认的60秒超时。
Incompatibilities in the SAP HANA Database:
Adjustments in This Submission:
SqlQueryConverter-convertNameToBizName
, special handling for SAP HANA is done. For non-uppercase fields, double quotes are used to enclose fields and alias fields. Processing this during the parse stage will result in model field translation failure.Additional Modification:
A simple change is made to add a default 60-second timeout parameter to prevent the program from reporting an error when using the Zhipu model embedding.
Databases Supporting Lowercase Field Names:
Support for Complex SAP HANA SQL:
These databases can support complex SQL, such as:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
新增处理功能点方法SqlReplaceHelper->replaceAliasFieldName,用于替换sql中的as字段名。
Checklist:
Additional information
Any additional information, configuration or data that might be necessary to reproduce the issue.
针对复杂HANA语句处理:
use the zhipu model for embeding test
可支持使用小写字段的数据库,也可支持以下复杂的sql: