From 861bf6af313d908fa8d76751ee74b22546fa9860 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Fri, 17 Sep 2021 11:44:43 +0800 Subject: [PATCH] [KYUUBI #1108] Register KyuubiDriver in ServiceLoader ### _Why are the changes needed?_ ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1108 from pan3793/jdbc. Closes #1108 0f14d12a [Cheng Pan] Add License header 18e19c5f [Cheng Pan] Exclude META-INF/services from rat 5048c471 [Cheng Pan] Register KyuubiDriver in ServiceLoader Authored-by: Cheng Pan Signed-off-by: Cheng Pan --- .../resources/META-INF/services/java.sql.Driver | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 kyuubi-hive-jdbc/src/main/resources/META-INF/services/java.sql.Driver diff --git a/kyuubi-hive-jdbc/src/main/resources/META-INF/services/java.sql.Driver b/kyuubi-hive-jdbc/src/main/resources/META-INF/services/java.sql.Driver new file mode 100644 index 000000000..6611c7e36 --- /dev/null +++ b/kyuubi-hive-jdbc/src/main/resources/META-INF/services/java.sql.Driver @@ -0,0 +1,16 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +org.apache.kyuubi.jdbc.KyuubiDriver