In production such as compute ealist login time zipper table,user want to get the small record to query when set sequence.field, currently paimon can only get the largest record, user need (Long.max - timestamp) which is not very convenient. This pr is aimed to support user set sequence.field order to get largest or small record with a option sequence.field.sort.is.ascending, default true keep the largest one,with false keep the small one.
eg like ut case.
Purpose
In production such as compute ealist login time zipper table,user want to get the small record to query when set sequence.field, currently paimon can only get the largest record, user need (Long.max - timestamp) which is not very convenient. This pr is aimed to support user set sequence.field order to get largest or small record with a option sequence.field.sort.is.ascending, default true keep the largest one,with false keep the small one. eg like ut case.
Linked issue: close #xxx
Tests
API and Format
Documentation