Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB BatchSource Plugin #4

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

amolkokane-cirus
Copy link

@amolkokane-cirus amolkokane-cirus commented Jun 11, 2020

FB BatchSource Plugin

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@amolkokane-cirus
Copy link
Author

@googlebot I signed it!

@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@shiva-cirus
Copy link

@googlebot I consent.

@rmstar rmstar self-requested a review June 26, 2020 00:24
<dependency>
<groupId>io.cdap.cdap</groupId>
<artifactId>cdap-etl-api</artifactId>
<version>${cdap.version}</version>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scope should be provided
https://github.com/data-integrations/google-cloud/blob/develop/pom.xml#L148
Please take a look at above pom file for scope of the artifacts

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


adSets.add(result);

return result;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return value is unused?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

fieldSchema = fieldSchema.getNonNullable();
}

switch (fieldSchema.getType()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why other types are not supported like integer, double, date, timestamp etc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not sure why the original developers not support those types. Let me know if you want me to add a TO DO here. Facebook Ads plugins needs a lot of changes and is not very useful in the correct form. This feedback was provided to Bhooshan from our testing also also from P&G testing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add TODO with corresponding jira

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Updated with TODO and created JIRA ticket - https://issues.cask.co/browse/PLUGIN-365

public class FacebookInputFormat extends InputFormat {
@Override
public List<InputSplit> getSplits(JobContext jobContext) {
return Collections.singletonList(new FacebookSplit());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is using single split. Could you create a jira for it and add a TODO with the jira number here?

Bump checkstyle from 6.19 to 8.29
Updated FB API version to 6.0.3 and added missing javadoc
Updated FB API version to 7.2.0 and changed copyright to 2020
Modified to implement PR comments
Add TODO's in code based on PR feedback
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@CuriousVini CuriousVini merged commit 50e3e23 into data-integrations:develop Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants