Addition of Upsert operation in Salesforce sink Plugin#17
Addition of Upsert operation in Salesforce sink Plugin#17
Conversation
| } | ||
|
|
||
| @Before(order = 1, value = "@BQ_FAILURE_TEST") | ||
| public static void createTempSourceInvalidBQTable() throws IOException, InterruptedException { |
| public static void deletePushTopic(String pushTopicName) { | ||
| try { | ||
| PartnerConnection partnerConnection = new PartnerConnection( | ||
| Authenticator.createConnectorConfig(AuthenticatorCredentials.fromParameters(USERNAME, PASSWORD + SECURITYTOKEN, |
There was a problem hiding this comment.
Remove the unnecessary/non-targeted changes
| QueryResult queryResult = SalesforceStreamingSourceConfig.runQuery( | ||
| partnerConnection, | ||
| String.format("SELECT Id FROM PushTopic WHERE Name = '%s'", pushTopicName) | ||
| partnerConnection, |
There was a problem hiding this comment.
Remove the unnecessary/non-targeted changes
| String message = SalesforceConnectionUtil.getSalesforceErrorMessageFromException(e); | ||
| throw new InvalidStageException( | ||
| String.format("Cannot connect to Salesforce API with credentials specified due to error: %s", message), e); | ||
| String.format("Cannot connect to Salesforce API with credentials specified due to error: %s", message), e); |
There was a problem hiding this comment.
Remove the unnecessary/non-targeted changes
| } | ||
|
|
||
| public static void updateObject(String id, String objectName) { | ||
| public static void updateObject(String id, String objectName) { |
There was a problem hiding this comment.
Remove the unnecessary/non-targeted changes
| create table `DATASET.TABLE_NAME` (Name STRING, Col_Timestamp__c TIMESTAMP, Col_Date__c DATE, Col_Currency__c FLOAT64, | ||
| Col_Email__c STRING, Col_Number__c FLOAT64, Col_GeoLocation__Latitude__s FLOAT64, | ||
| Col_GeoLocation__Longitude__s FLOAT64, Col__c STRING, Col_Url__c STRING, Col_Time__c TIME, Col_Text__c STRING) | ||
| create table `DATASET.TABLE_NAME` (Id__c FLOAT64, Name STRING, Col_Timestamp__c TIMESTAMP, Col_Date__c DATE, Col_Currency__c FLOAT64, |
There was a problem hiding this comment.
Is this change done to fix the broken environment dependent tests?
There was a problem hiding this comment.
Yes, we have done this change to fix the broken environment dependent tests.
| insert into `DATASET.TABLE_NAME` (Name, Col_Timestamp__c, Col_Date__c, Col_Currency__c, Col_Email__c, Col_Number__c, | ||
| Col_GeoLocation__Latitude__s, Col_GeoLocation__Longitude__s, Col__c, Col_Url__c, Col_Time__c, Col_Text__c) values | ||
| ('adam','2019-03-10 04:50:01 UTC','2021-01-28',61.823765812,'skfdsfds@gmail.com',898365444,37.794116,-122.3432, | ||
| insert into `DATASET.TABLE_NAME` (Id__c, Name, Col_Timestamp__c, Col_Date__c, Col_Currency__c, Col_Email__c, Col_Number__c, |
There was a problem hiding this comment.
Is this change done to fix the broken environment dependent tests?
There was a problem hiding this comment.
Yes, we have done this change to fix the broken environment dependent tests.
| simple.query=SELECT Id, Name, Phone FROM Account | ||
| test.query=SELECT Id,Name,Col_Timestamp__c,Col_Date__c,Col_Currency__c,Col_Email__c,Col_Number__c,\ | ||
| Col_GeoLocation__Latitude__s,Col_GeoLocation__Longitude__s,Col__c,Col_Url__c,Col_Time__c,Col_Text__c FROM Automation_custom__c | ||
| Col__c,Col_Url__c,Col_Time__c,Col_Text__c FROM Automation_custom__c |
There was a problem hiding this comment.
Is this change done to fix the broken environment dependent tests?
There was a problem hiding this comment.
Yes, we have done this change to fix the broken environment dependent tests.
| "Col_Currency__c":123.456,"Col_Email__c":"hello443@gmail.com","Col_Number__c":1008.0,\ | ||
| "Col__c":"984746334","Col_Url__c":"abc/123","Col_Time__c":"05:00:00.000Z","Col_Text__c":"shsss"} | ||
|
|
||
| url = http://10.132.0.45:3128 |
No description provided.