forked from lakesoul-io/LakeSoul
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flink] Add Jdbc cdc sources and sinks (lakesoul-io#381)
* add spark call sql syntax Signed-off-by: maosen <[email protected]> * fix bug Signed-off-by: maosen <[email protected]> * postgres cdc Signed-off-by: maosen <[email protected]> * support oracle Signed-off-by: ChenYunHey <[email protected]> * rebase main and set cdc version is 2.4.2 Signed-off-by: ChenYunHey <[email protected]> * support servertimeZone Signed-off-by: ChenYunHey <[email protected]> * delete scope Signed-off-by: ChenYunHey <[email protected]> * scope-compile Signed-off-by: ChenYunHey <[email protected]> * add para plugName for pg source Signed-off-by: ChenYunHey <[email protected]> * include pg and oracle cdc Signed-off-by: ChenYunHey <[email protected]> * support in lake and out lake Signed-off-by: ChenYunHey <[email protected]> * fix pom.xml Signed-off-by: ChenYunHey <[email protected]> * jdbc cdc doc Signed-off-by: ChenYunHey <[email protected]> * complete jdbcCDC doc Signed-off-by: ChenYunHey <[email protected]> * add out of lake docs Signed-off-by: ChenYunHey <[email protected]> * fix code Signed-off-by: ChenYunHey <[email protected]> * swich LocalEnvironment to RemoteEnviroment Signed-off-by: ChenYunHey <[email protected]> * include flink-con-jdbc,flink-doris-con Signed-off-by: ChenYunHey <[email protected]> * Add additional documentation Signed-off-by: ChenYunHey <[email protected]> * support ADB Signed-off-by: ChenYunHey <[email protected]> * fix fetch primary key logical Signed-off-by: ChenYunHey <[email protected]> --------- Signed-off-by: maosen <[email protected]> Signed-off-by: ChenYunHey <[email protected]> Co-authored-by: maosen <[email protected]> Co-authored-by: moresun <[email protected]>
- Loading branch information
1 parent
b730962
commit bad1f31
Showing
20 changed files
with
889 additions
and
389 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
lakesoul-flink/src/main/java/com/dmetasoul/lakesoul/meta/external/NameSpaceManager.java
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,19 @@ | ||
// SPDX-FileCopyrightText: 2023 LakeSoul Contributors | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package com.dmetasoul.lakesoul.meta.external; | ||
|
||
import com.alibaba.fastjson.JSONObject; | ||
import com.dmetasoul.lakesoul.meta.DBManager; | ||
|
||
public class NameSpaceManager implements ExternalDBManager{ | ||
private final DBManager lakesoulDBManager = new DBManager(); | ||
|
||
@Override | ||
public void importOrSyncLakeSoulNamespace(String namespace) { | ||
if (lakesoulDBManager.getNamespaceByNamespace(namespace) != null) { | ||
return; | ||
} | ||
lakesoulDBManager.createNewNamespace(namespace, new JSONObject().toJSONString(), ""); | ||
} | ||
} |
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
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
Oops, something went wrong.