[KYUUBI #5782] Flink Engine GetInfo support CLI_ODBC_KEYWORDS
# 🔍 Description ## Issue References 🔗 This PR aims to support `CLI_ODBC_KEYWORDS` on flink engine to avoid https://github.com/apache/kyuubi/issues/2637 ## Describe Your Solution 🔧 Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. ## Types of changes 🔖 - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests Adjusted existing test #org.apache.kyuubi.it.flink.operation.FlinkOperationSuite --- # Checklists ## 📝 Author Self Checklist - [x] My code follows the [style guidelines](https://kyuubi.readthedocs.io/en/master/contributing/code/style.html) of this project - [x] I have performed a self-review - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) ## 📝 Committer Pre-Merge Checklist - [x] Pull request title is okay. - [x] No license issues. - [ ] Milestone correctly set? - [ ] Test coverage is ok - [ ] Assignees are selected. - [ ] Minimum number of approvals - [ ] No changes are requested **Be nice. Be informative.** Closes #5782 from Yikf/flink-CLI_ODBC_KEYWORDS. Closes #5782 ef0dc049a [yikaifei] Flink GetInfo support CLI_ODBC_KEYWORDS Authored-by: yikaifei <yikaifei@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
parent
933978e4e1
commit
67bf8e135b
@ -109,6 +109,7 @@ class FlinkSessionImpl(
|
||||
case TGetInfoType.CLI_SERVER_NAME | TGetInfoType.CLI_DBMS_NAME =>
|
||||
TGetInfoValue.stringValue("Apache Flink")
|
||||
case TGetInfoType.CLI_DBMS_VER => TGetInfoValue.stringValue(EnvironmentInformation.getVersion)
|
||||
case TGetInfoType.CLI_ODBC_KEYWORDS => TGetInfoValue.stringValue("Unimplemented")
|
||||
case _ => throw KyuubiSQLException(s"Unrecognized GetInfoType value: $infoType")
|
||||
}
|
||||
}
|
||||
|
||||
@ -98,6 +98,8 @@ class FlinkOperationSuite extends WithKyuubiServerAndFlinkMiniCluster
|
||||
req.setSessionHandle(handle)
|
||||
req.setInfoType(TGetInfoType.CLI_DBMS_NAME)
|
||||
assert(client.GetInfo(req).getInfoValue.getStringValue === "Apache Flink")
|
||||
req.setInfoType(TGetInfoType.CLI_ODBC_KEYWORDS)
|
||||
assert(client.GetInfo(req).getInfoValue.getStringValue === "Unimplemented")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user