I am using the AWS RedShift serverless to query some s3 files which contain Parquet data. Before querying the data, I always need to run the following command:
SET json_serialization_enable TO true;
Is there a way to set this flag as true globally so that it is not tied to a session?
You could set this using ALTER USER:
ALTER USER yourusername SET json_serialization_enable TO true;
This is similar to this answer: How to change default value for parameter globally for redshift cluster