Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.38.0
Description
Vertica does not support FETCH NEXT ? ROWS ONLY syntax:
SQL
SELECT * FROM dual LIMIT 1
actual
SELECT * FROM "dual" FETCH NEXT 1 ROWS ONLY
expected
SELECT * FROM "dual" LIMIT 1
The fix seems to be adding this to VerticaSqlDialect.java:
@Override
public void unparseOffsetFetch(SqlWriter writer, @Nullable SqlNode offset, @Nullable SqlNode fetch) {
unparseFetchUsingLimit(writer, offset, fetch);
}
Attachments
Issue Links
- links to