Skip to content

Conversation

@jun-he
Copy link
Collaborator

@jun-he jun-he commented May 17, 2020

This PR fixed a few bugs/issues in partition spec and transforms classes

  • In partition spec source_column.types should be source_column.type
  • type_id is missed or is mistakenly used as type_id() in multiple classes
  • In dates class, __str__ will cause RecursionError as it calls itself.
  • Fixed returning TruncateLong instead of TruncateInteger for TypeID.LONG.
  • Fixed truncate static method to use the right input parameter type_var.
  • added unit tests in python, similar to Java partition spec base test.

@rdblue rdblue merged commit 49de952 into apache:master May 18, 2020
@rdblue
Copy link
Contributor

rdblue commented May 18, 2020

Thanks, @jun-he! Looks good to me.

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.

2 participants