Skip to content

Commit

Permalink
Expose functions to fetch record partitionColumn value (#3810)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyJiang99 authored Oct 26, 2023
1 parent 918716f commit be849ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public long getRecordTimestamp(GenericRecord record) {
/**
* Check if the partition column value is present and is a Long object. Otherwise, use current system time.
*/
private long getRecordTimestamp(Optional<Object> writerPartitionColumnValue) {
protected long getRecordTimestamp(Optional<Object> writerPartitionColumnValue) {

if (writerPartitionColumnValue.isPresent()) {
Object val = writerPartitionColumnValue.get();
Expand All @@ -103,7 +103,7 @@ private long getRecordTimestamp(Optional<Object> writerPartitionColumnValue) {
/**
* Retrieve the value of the partition column field specified by this.partitionColumns
*/
private Optional<Object> getWriterPartitionColumnValue(GenericRecord record) {
protected Optional<Object> getWriterPartitionColumnValue(GenericRecord record) {
if (!this.partitionColumns.isPresent()) {
return Optional.absent();
}
Expand Down

0 comments on commit be849ad

Please sign in to comment.