[root@localhost ~]# alias y_217
alias y_217='/root/yugabyte-2.17.0.0/bin/ysqlsh -h 198.xx.xx.xxx -U yugabyte'
[root@localhost ~]# y_217 -Atc "SELECT 'DROP TABLE IF EXISTS test_table; CREATE TABLE test_table (' UNION ALL SELECT 'col' || generate_series || CASE WHEN generate_series <1600 THEN ' INT,' ELSE ' INT);' END FROM generate_series(1, 1600);" | y_217
NOTICE: table "test_table" does not exist, skipping
DROP TABLE
CREATE TABLE
[root@localhost ~]# y_217 -c "SELECT COUNT(*) FROM information_schema.columns WHERE table_name = 'test_table';"
count
-------
1600
(1 row)