Skip to content

Bq proto abstractions - #3

Merged
lavkesh merged 8 commits into
mainfrom
bq-proto-abstractions
Apr 27, 2022
Merged

Bq proto abstractions#3
lavkesh merged 8 commits into
mainfrom
bq-proto-abstractions

Conversation

@lavkesh

@lavkesh lavkesh commented Apr 25, 2022

Copy link
Copy Markdown
Member

No description provided.

@lavkesh
lavkesh force-pushed the bq-proto-abstractions branch from af41a26 to d535968 Compare April 25, 2022 12:15

Map<String, Object> getMapping();
} No newline at end of file
void validate(OdpfSinkConfig config);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am assuming validate will be used to check the configs and then after we will call getRaw or getMapping. However, it neither returns a boolean nor throws any exceptions. How will this be used ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yea we can think about the method signature. it can just log or throw runtime exception too, we don't have to declare RuntimeException.

Comment thread src/main/java/io/odpf/sink/connectors/message/json/JsonOdpfMessageParser.java Outdated
Comment thread src/main/java/io/odpf/sink/connectors/message/json/JsonOdpfMessageParser.java Outdated
@lavkesh
lavkesh force-pushed the bq-proto-abstractions branch from 5006196 to 2d77c4d Compare April 26, 2022 08:42
@lavkesh
lavkesh merged commit e62c8a4 into main Apr 27, 2022
Comment thread src/main/java/io/odpf/sink/connectors/message/MessageUtils.java
@ConverterClass(InputSchemaDataTypeConverter.class)
@DefaultValue("PROTOBUF")
InputSchemaDataType getInputSchemaDataTye();
InputSchemaDataType getSinkConnectorSchemaDataTye();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  1. There's a typo in the getter name 'Tye'. Also, Do you want to keep Object and Converter class names like this or with prefix 'SinkConnector' ?

  2. Unable to comment there so adding it in this thread. Let's keep the key and getter names in sync for line 41

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Right. I will check the configs.

Comment thread src/main/java/io/odpf/sink/connectors/config/OdpfSinkConfig.java
@lavkesh
lavkesh deleted the bq-proto-abstractions branch May 12, 2022 05:14
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.

3 participants