Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Seatunnel-web] [HiveJDBC] Duplicate columns are displayed in source #221

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ protected List<String> getTableNames(Map<String, String> requestParams, String d
List<String> tableNames = new ArrayList<>();
try (Connection connection = getHiveConnection(requestParams)) {
ResultSet resultSet =
connection
.getMetaData()
.getTables(dbName, dbName, null, new String[] {"TABLE"});
connection.getMetaData().getTables(null, dbName, null, new String[] {"TABLE"});
while (resultSet.next()) {
String tableName = resultSet.getString("TABLE_NAME");
if (StringUtils.isNotBlank(tableName)) {
Expand All @@ -200,7 +198,7 @@ protected List<TableField> getTableFields(
try (Connection connection = getHiveConnection(requestParams)) {
DatabaseMetaData metaData = connection.getMetaData();
String primaryKey = getPrimaryKey(metaData, dbName, tableName);
ResultSet resultSet = metaData.getColumns(dbName, null, tableName, null);
ResultSet resultSet = metaData.getColumns(null, dbName, tableName, null);
while (resultSet.next()) {
TableField tableField = new TableField();
String columnName = resultSet.getString("COLUMN_NAME");
Expand Down
Loading