Skip to content

Commit

Permalink
ADBDEV-4011: Fix DemoTextResolver
Browse files Browse the repository at this point in the history
In the previous releases, if an external table has 'TEXT' output format a text row data was passed as a single field. In this release, the logic was changed. The new annotation was introduced. This annotation is used for marking Plugins as capable of handling InputStream with raw data. DemoTextResolver can handle InputStream, but it didn't have this annotation.
  • Loading branch information
RomaZe committed Jul 26, 2023
1 parent c690651 commit bcd3637
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.greenplum.pxf.api.OneField;
import org.greenplum.pxf.api.OneRow;
import org.greenplum.pxf.api.io.DataType;
import org.greenplum.pxf.api.model.InputStreamHandler;

import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
Expand All @@ -33,6 +34,7 @@
* <p>
* Demo implementation of resolver that returns text format
*/
@InputStreamHandler
public class DemoTextResolver extends DemoResolver {

/**
Expand Down

0 comments on commit bcd3637

Please sign in to comment.