I execute the sql by TeraJDBC13.1, but throw the exception:
The SQL statement:
The Teradata JDBC Driver does not yet support WITH clauses and summary values. That feature request is covered by JDBC RFC 85621.
Omit the WITH clause from your query in order to execute it using the Teradata JDBC Driver.