@@ -79,7 +79,7 @@ class Cursor(common.DBAPICursor):
7979 visible by other cursors or connections.
8080 """
8181
82- def __init__ (self , host , port = '8080' , username = None , principle_username = None , catalog = 'hive' ,
82+ def __init__ (self , host , port = '8080' , username = None , principal_username = None , catalog = 'hive' ,
8383 schema = 'default' , poll_interval = 1 , source = 'pyhive' , session_props = None ,
8484 protocol = 'http' , password = None , requests_session = None , requests_kwargs = None ,
8585 KerberosRemoteServiceName = None , KerberosPrincipal = None ,
@@ -89,7 +89,7 @@ def __init__(self, host, port='8080', username=None, principle_username=None, ca
8989 :param host: hostname to connect to, e.g. ``presto.example.com``
9090 :param port: int -- port, defaults to 8080
9191 :param username: string -- defaults to system user name
92- :param principle_username : string -- defaults to ``username`` argument if it exists,
92+ :param principal_username : string -- defaults to ``username`` argument if it exists,
9393 else defaults to system user name
9494 :param catalog: string -- defaults to ``hive``
9595 :param schema: string -- defaults to ``default``
@@ -126,19 +126,19 @@ class will use the default requests behavior of making a new session per HTTP re
126126 """
127127 Presto User Impersonation: https://docs.starburstdata.com/latest/security/impersonation.html
128128
129- User impersonation allows the execution of queries in Presto based on principle_username
129+ User impersonation allows the execution of queries in Presto based on principal_username
130130 argument, instead of executing the query as the account which authenticated against Presto.
131131 (Usually a service account)
132132
133133 Allows for a service account to authenticate with Presto, and then leverage the
134- principle_username as the user Presto will execute the query as. This is required by
134+ principal_username as the user Presto will execute the query as. This is required by
135135 applications that leverage authentication methods like SAML, where the application has a
136136 username, but not a password to still leverage user specific Presto Resource Groups and
137137 Authorization rules that would not be applied when only using a shared service account.
138138 This also allows auditing of who is executing a query in these environments, instead of
139139 having all queryes run by the shared service account.
140140 """
141- self ._username = principle_username or username or getpass .getuser ()
141+ self ._username = principal_username or username or getpass .getuser ()
142142 self ._catalog = catalog
143143 self ._schema = schema
144144 self ._arraysize = 1
0 commit comments