# GlueCatalogLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/glue_catalog/GlueCatalogLoader)

Load table schemas from AWS Glue.

This loader fetches the schema of each table within a specified AWS Glue database.
The schema details include column names and their data types, similar to pandas
dtype representation.

AWS credentials are automatically loaded using boto3, following the standard AWS
method:
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html

If a specific AWS profile is required, it can be specified and will be used to
establish the session.

## Signature

```python
GlueCatalogLoader(
    self,
    database: str,
    *,
    session: Optional[Session] = None,
    profile_name: Optional[str] = None,
    table_filter: Optional[List[str]] = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `database` | `str` | Yes | The name of the Glue database from which to load table schemas. |
| `session` | `Optional[Session]` | No | Optional. A boto3 Session object. If not provided, a new session will be created. (default: `None`) |
| `profile_name` | `Optional[str]` | No | Optional. The name of the AWS profile to use for credentials. (default: `None`) |
| `table_filter` | `Optional[List[str]]` | No | Optional. List of table names to fetch schemas for, fetching all if None. (default: `None`) |

## Extends

- `BaseLoader`

## Constructors

```python
__init__(
    self,
    database: str,
    *,
    session: Optional[Session] = None,
    profile_name: Optional[str] = None,
    table_filter: Optional[List[str]] = None,
)
```

| Name | Type |
|------|------|
| `database` | `str` |
| `session` | `Optional[Session]` |
| `profile_name` | `Optional[str]` |
| `table_filter` | `Optional[List[str]]` |


## Properties

- `database`
- `profile_name`
- `table_filter`
- `glue_client`

## Methods

- [`lazy_load()`](https://reference.langchain.com/python/langchain-community/document_loaders/glue_catalog/GlueCatalogLoader/lazy_load)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/document_loaders/glue_catalog.py#L13)