22
33import logging
44from typing import Any , Dict , Iterator , List , NamedTuple , Optional , Tuple , Union , cast
5- from urllib .parse import quote_plus
65
76import boto3
87import pandas as pd
@@ -40,8 +39,8 @@ def _get_connection_attributes_from_catalog(
4039 port , database = details ["JDBC_CONNECTION_URL" ].split (":" )[3 ].split ("/" )
4140 return ConnectionAttributes (
4241 kind = details ["JDBC_CONNECTION_URL" ].split (":" )[1 ].lower (),
43- user = quote_plus ( details ["USERNAME" ]) ,
44- password = quote_plus ( details ["PASSWORD" ]) ,
42+ user = details ["USERNAME" ],
43+ password = details ["PASSWORD" ],
4544 host = details ["JDBC_CONNECTION_URL" ].split (":" )[2 ].replace ("/" , "" ),
4645 port = int (port ),
4746 database = dbname if dbname is not None else database ,
@@ -63,8 +62,8 @@ def _get_connection_attributes_from_secrets_manager(
6362 _dbname = _get_dbname (cluster_id = secret_value ["dbClusterIdentifier" ], boto3_session = boto3_session )
6463 return ConnectionAttributes (
6564 kind = kind ,
66- user = quote_plus ( secret_value ["username" ]) ,
67- password = quote_plus ( secret_value ["password" ]) ,
65+ user = secret_value ["username" ],
66+ password = secret_value ["password" ],
6867 host = secret_value ["host" ],
6968 port = secret_value ["port" ],
7069 database = _dbname ,
0 commit comments