Hi Experts,
I am trying to execute the CREATE VIRTUAL FUNCTION statement to extract data from a Remote Source I have created in the HANA System 'TRS'.
I have created the Remote Source based on the Twitter Adapter provided under the HANA DP Agent.
'
The SQL Statement I am executing is :
CREATE VIRTUAL FUNCTION GetSearchTweets(query NVARCHAR(512),
count INTEGER,
since_id BIGINT,
max_id BIGINT,
geocode NVARCHAR(256),
lang ALPHANUM(2),
locale ALPHANUM(2),
result_type ALPHANUM(64),
until DATE) RETURNS TABLE (Id BIGINT,
ScreenName NVARCHAR(256),
Tweet NVARCHAR(256),
Source NVARCHAR(256),
Truncated TINYINT,
InReplyToStatusId BIGINT,
InReplyToUserId BIGINT,
InReplyToScreenName NVARCHAR(256),
Favorited TINYINT,
Retweeted TINYINT,
FavoriteCount INTEGER,
Retweet TINYINT,
RetweetCount INTEGER,
RetweetedByMe TINYINT,
CurrentUserRetweetId BIGINT,
PossiblySensitive TINYINT,
isoLanguageCode NVARCHAR(256),
CreatedAt TIMESTAMP,
Latitude DOUBLE,
Longitude DOUBLE,
Country NVARCHAR(256),
Place_name NVARCHAR(256),
Place_type NVARCHAR(256),
UserId BIGINT,
UserName NVARCHAR(256),
UserUrl NVARCHAR(256)) CONFIGURATION '{"__DP_UNIQUE_NAME__":"Search_Tweets"}' AT "TRS";
I have got this SQL statement from the Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data Quality.
The Remote Source 'TRS' was created using the method suggested in the guide.
The error message that I get is:
Could not execute 'CREATE VIRTUAL FUNCTION GetSearchTweets(query NVARCHAR(512), count INTEGER, since_id BIGINT, max_id ...'
SAP DBTech JDBC: [471]: invalid data source name: Invalid Remote Destination. TRS: line 34 col 84 (at pos 966)
I am using Eclipse IDE Mars.1 Release for development but this has also been tried using the HANA Studio.
We have tried using the HANA DP Agent 1.2.7 and also 1.3.3 but to no use.
Would really appreciate any help I can get for this issue.
Regards,
Arvind