

 Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026. For more information, see the [ blog post ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/). 

# SYS\$1DATASHARE\$1CROSS\$1REGION\$1USAGE
SYS\$1DATASHARE\$1CROSS\$1REGION\$1USAGE

Use the SYS\$1DATASHARE\$1CROSS\$1REGION\$1USAGE view to get a summary of cross-Region data transferred usage caused by cross-Region datasharing query. SYS\$1DATASHARE\$1CROSS\$1REGION\$1USAGE aggregates details at the segment level.

SYS\$1DATASHARE\$1CROSS\$1REGION\$1USAGE is visible only to superusers. For more information, see [Visibility of data in system tables and views](cm_chap_system-tables.md#c_visibility-of-data).

## Table columns
Table columns

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/redshift/latest/dg/r_SYS_DATASHARE_CROSS_REGION_USAGE.html)

## Sample queries
Sample queries

The following example shows a SYS\$1DATASHARE\$1CROSS\$1REGION\$1USAGE view.

```
SELECT query_id, segment_id, transferred_data, source_region
from sys_datashare_cross_region_usage
where query_id = pg_last_query_id()
order by query_id, segment_id;

  query_id | segment_id | transferred_data | source_region 
-----------+------------+------------------+---------------
    200048 |          2 |          4194304 |    us-west-1  
    200048 |          2 |          4194304 |    us-east-2
```