Skip to content

chore: adding type transformer#35

Merged
kodiakhq[bot] merged 1 commit intomainfrom
chore/add_type_transformer
Aug 14, 2023
Merged

chore: adding type transformer#35
kodiakhq[bot] merged 1 commit intomainfrom
chore/add_type_transformer

Conversation

@mnorbury
Copy link
Copy Markdown
Collaborator

@mnorbury mnorbury commented Aug 14, 2023

Implementing tests for a type converter to convert types in a similar way to the current Go implementation.

  • Some simple stubbed Arrow extension types needed to be added for InetType and JSONType - implementation to follow in future PRs.
  • A wrapper around the arrow List type was created to reproduce the ListOf functionality present in the Go arrow SDK but not in the Java.

fixes: #31

@mnorbury mnorbury added the automerge Add to automerge PRs once requirements are met label Aug 14, 2023
@kodiakhq kodiakhq Bot merged commit 2f2e107 into main Aug 14, 2023
@kodiakhq kodiakhq Bot deleted the chore/add_type_transformer branch August 14, 2023 09:26

@Override
public boolean extensionEquals(ExtensionType other) {
if (!(other instanceof InetType))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wouldn't this work?

Suggested change
if (!(other instanceof InetType))
return other instanceof InetType;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes I think you are right. I was keeping with the style of other ArrowTypes, but I think they are generated code from this block.

I'll at the change as part of the next PR.

mnorbury added a commit that referenced this pull request Aug 14, 2023
kodiakhq Bot pushed a commit that referenced this pull request Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Add to automerge PRs once requirements are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: add type transformer interface and default implementation

3 participants