Amazon Redshift will no longer support the creation of new Python UDFs starting November 1, 2025.
If you would like to use Python UDFs, create the UDFs prior to that date.
Existing Python UDFs will continue to function as normal. For more information, see the
blog post
CURRENT_AWS_ACCOUNT
Returns the AWS account associated with the Amazon Redshift cluster that submitted a query.
Syntax
current_aws_account
Return type
Returns an integer.
Example
The following query returns the name of the current database.
select user, current_aws_account; current_user | current_account -------------+--------------- dwuser | 987654321 (1 row)