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
Getting started with Amazon Redshift RSQL
Install Amazon Redshift RSQL on a computer with a Linux, macOS, or Microsoft Windows operating system.
Download RSQL
-
Linux 64-bit RPM: RSQL Version 1.1.2
. In the China (Beijing) Region, use the following link: RSQL Version 1.1.2 -
Mac OS 64-bit PKG: RSQL Version 1.1.2
. In the China (Beijing) Region, use the following link: RSQL Version 1.1.2 -
Windows 64-bit MSI: RSQL Version 1.1.2
. In the China (Beijing) Region, use the following link: RSQL Version 1.1.2
See the change log and downloads for previous versions at Amazon Redshift RSQL change log.
Install RSQL for Linux
Follow the steps below to install RSQL for Linux.
-
Install the driver manager with the following command:
sudo yum install unixODBC -
Install the ODBC driver: Downloading and installing the Amazon Redshift ODBC driver.
-
Copy the ini file to your home directory:
cp /opt/amazon/redshiftodbcx64/odbc.ini ~/.odbc.ini -
Set the environment variables to point to the location of the file:
export ODBCINI=~/.odbc.ini export ODBCSYSINI=/opt/amazon/redshiftodbcx64/ export AMAZONREDSHIFTODBCINI=/opt/amazon/redshiftodbcx64/amazon.redshiftodbc.ini -
You can now install RSQL by running the following command.
sudo rpm -i AmazonRedshiftRsql-<version>.rhel.x86_64.rpm
Install RSQL for Mac
Follow the steps below to install RSQL for Mac OSX.
-
Install the driver manager with the following command:
brew install unixodbc --build-from-source -
Install the ODBC driver: Downloading and installing the Amazon Redshift ODBC driver.
-
Copy the ini file to your home directory:
cp /opt/amazon/redshift/Setup/odbc.ini ~/.odbc.ini -
Set the environment variables to point to the location of the file:
export ODBCINI=~/.odbc.ini export ODBCSYSINI=/opt/amazon/redshift/Setup export AMAZONREDSHIFTODBCINI=/opt/amazon/redshift/lib/amazon.redshiftodbc.ini -
Set
DYLD_LIBRARY_PATHto location of your libodbc.dylib if its not in/usr/local/lib.export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib -
Double-click the pkg file to run the installer.
-
Follow the steps in the installer to complete the installation. Agree to the terms of the license agreement.
Install RSQL for Windows
Follow the steps below to install RSQL for Windows.
-
Install the ODBC driver: Downloading and installing the Amazon Redshift ODBC driver.
-
Double-click the RSQL download file to run the installer, then follow the prompts to complete the installation.