Skip to content

Commit

Permalink
Add missing license header
Browse files Browse the repository at this point in the history
Fix NPE
  • Loading branch information
codope committed Aug 2, 2023
1 parent c744601 commit d0ff3ca
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.trino.plugin.hudi;

import io.airlift.log.Logger;
Expand Down Expand Up @@ -122,7 +135,7 @@ public Page getNextPage()
appendTo(columnTypes.get(column), record.getData(), output);
}
}
return null;
return pageBuilder.build();
}

private void appendTo(Type type, Object value, BlockBuilder output)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.trino.plugin.hudi;

import java.time.Instant;
Expand Down

0 comments on commit d0ff3ca

Please sign in to comment.