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

Revert various cleanup fixes (#2467) #2498

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Revert various cleanup fixes (#2467) #2498

merged 1 commit into from
Dec 23, 2024

Conversation

AbdulR3hman
Copy link
Contributor

Issue #, if available:
partially reverts commit 0ffb7b8.
Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -136,7 +134,7 @@ private MongoClient getOrCreateConn(MetadataRequest request)
{
String connStr = getConnStr(request);
if (configOptions.containsKey(SECRET_NAME) && !hasEmbeddedSecret(connStr)) {
connStr = String.join(connStr.substring(0, DOCDB_CONN_STRING_PREFIX.length()), "${", configOptions.get(SECRET_NAME), "}@", connStr.substring(DOCDB_CONN_STRING_PREFIX.length()));
connStr = connStr.substring(0, 10) + "${" + configOptions.get(SECRET_NAME) + "}@" + connStr.substring(10);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to remember to go back here and get rid of the 10 magic number

@@ -161,7 +161,8 @@ public void getPartitions(final BlockWriter blockWriter, final GetTableLayoutReq
LOGGER.debug("{}: Schema {}, table {}", getTableLayoutRequest.getQueryId(), transformString(getTableLayoutRequest.getTableName().getSchemaName(), true),
transformString(getTableLayoutRequest.getTableName().getTableName(), true));
try (Connection connection = getJdbcConnectionFactory().getConnection(getCredentialProvider())) {
List<String> parameters = Arrays.asList(transformString(getTableLayoutRequest.getTableName().getTableName(), true));
List<String> parameters = Arrays.asList(transformString(getTableLayoutRequest.getTableName().getTableName(), true));
//try (Statement statement = connection.createStatement(); ResultSet resultSet = statement.executeQuery(GET_PARTITIONS_QUERY + ))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment to remove

@aimethed aimethed merged commit 1c686a9 into master Dec 23, 2024
8 checks passed
@aimethed aimethed deleted the revert-2467 branch December 23, 2024 20:45
github-actions bot pushed a commit that referenced this pull request Dec 23, 2024
  - Revert various cleanup fixes (#2467) (#2498)
  - Revert 'various cleanup fixes (#2467)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants