-
Notifications
You must be signed in to change notification settings - Fork 883
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI #2016] Hive Backend Engine - GetTables Operation
### _Why are the changes needed?_ Hive Backend Engine - GetTables Operation. ### _How was this patch tested?_ - [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2155 from SteNicholas/KYUUBI-2016. Closes #2016 7363719 [SteNicholas] [KYUUBI #2016] Hive Backend Engine - GetTables Operation 1f3d691 [SteNicholas] [KYUUBI #2016] Hive Backend Engine - GetTables Operation Authored-by: SteNicholas <programgeek@163.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
- Loading branch information
1 parent
31be7a3
commit 449c426
Showing
3 changed files
with
112 additions
and
2 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...bi-hive-sql-engine/src/main/scala/org/apache/kyuubi/engine/hive/operation/GetTables.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.kyuubi.engine.hive.operation | ||
|
||
import java.util.List | ||
|
||
import org.apache.hive.service.cli.operation.Operation | ||
|
||
import org.apache.kyuubi.operation.OperationType | ||
import org.apache.kyuubi.session.Session | ||
|
||
class GetTables( | ||
session: Session, | ||
catalogName: String, | ||
schemaName: String, | ||
tableName: String, | ||
tableTypes: List[String]) | ||
extends HiveOperation(OperationType.GET_TABLES, session) { | ||
|
||
override val internalHiveOperation: Operation = | ||
delegatedOperationManager.newGetTablesOperation( | ||
hive, | ||
catalogName, | ||
schemaName, | ||
tableName, | ||
tableTypes) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters