# Connect to trino with special symbol

**URL:** <https://discourse.greatexpectations.io/t/connect-to-trino-with-special-symbol/2287>\
**Category:** GX Core Support\
**Tags:** how-to, help-wanted\
**Created:** [August 21, 2025, 10:07am UTC](https://discourse.greatexpectations.io/t/connect-to-trino-with-special-symbol/2287 "2025-08-21T10:07:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StacyStacy](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@StacyStacy](https://discourse.greatexpectations.io/u/StacyStacy)\
**Post date:** [August 21, 2025, 10:07am UTC](https://discourse.greatexpectations.io/t/connect-to-trino-with-special-symbol/2287/1 "2025-08-21T10:07:06Z")

</div>

Hello

I’m trying connect to trino, but my password have special symbols(quote and quote\_plus not working in string conectation in SQLAlchemy (trino)

```python
context = gx.get_context(mode="file")
conn_str = f"trino://{user}@{host}:{port}/{catalog}?verify=false&http_scheme=https"

connect_args = {
    "http_scheme": "https",  
    "verify": False,  
    "auth": BasicAuthentication(user, password) 
}

datasource = context.data_sources.add_sql(
    name="trino_datasource_kwargs",
    connection_string=conn_str,
    kwargs = {"connect_args": connect_args}
)

  File "C:\Users\Anastasiya.Vatutina\git_projects\my_new_env\Lib\site-packages\pydantic\v1\json.py", line 90, in pydantic_encoder
    raise TypeError(f"Object of type '{obj. __class__. __name__ }' is not JSON serializable")
TypeError: Object of type 'BasicAuthentication' is not JSON serializable

```

But, if i using ephemeral = it’s work

`context = gx.get_context(mode="ephemeral")`

```python
config = datasource.dict()

print(yaml.dump(config, default_flow_style=False, indent=2))  

```

```yaml
connection_string: trino://user@connect-dev.xx.ru:443/catalog_ice?verify=false&http_scheme=https
id: !!python/object:uuid.UUID
  int: 70498352837603432451497043048075957864
kwargs:
  connect_args:
    auth: !!python/object:trino.auth.BasicAuthentication
      _password: my_pass$@#
      _username: user
    http_scheme: https
    verify: false
name: trino_datasource_kwargs
type: sql

```

also i’m trying writing in great\_expectations.yaml this connect, but mapping not work((  
I’m usimg GX Core 1.5.8  
in GX Core 0.18 not problem
