In my Kinesis Analytics application I want to add a constant string to my output stream.
For example:
CREATE OR REPLACE STREAM "DESTINATION_SQL_STREAM" (
"constant_column" varchar(100),
"feature" varchar(246)
);
CREATE OR REPLACE PUMP "OutputPump" AS
INSERT INTO "DESTINATION_SQL_STREAM"
SELECT STREAM "MY_CONSTANT_STRING", "SOURCE_SQL_STREAM_001"."feature"
FROM "SOURCE_SQL_STREAM_001";
I would like to replace "MY_CONSTANT_STRING"
with some string value. The reason for this is that I have many pumps writing to my output stream, so I want some kind of indicator what pump is used. Is there a way to do this?