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

Add schema for signatures #466

Merged
merged 5 commits into from
Jul 30, 2024
Merged

Conversation

amishas157
Copy link
Contributor

@amishas157 amishas157 commented Jul 29, 2024

PR Checklist

PR Structure

  • This PR has reasonably narrow scope (if not, break it down into smaller PRs).
  • This PR avoids mixing refactoring changes with feature changes (split into two PRs
    otherwise).
  • This PR's title starts with the jira ticket associated with the PR.

Thoroughness

  • This PR adds tests for the most critical parts of the new functionality or fixes.
  • I've updated the README with the added features, breaking changes, new instructions on how to use the repository.

What

This PR adds export of signatures field in history_transactions table.

Ref: stellar/stellar-etl#271

Why

Ref: stellar/stellar-etl#271

Known limitations

None. Signatures is added as repeated string. To use it downstream, we would need to unnest it. However, there are no alternatives of it.

Comment on lines +212 to +215
{
"mode": "REPEATED",
"name": "signatures",
"type": "STRING"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no alternative to ARRAY_CONTAINS in bigquery . I would leave it as is in that case. Converting to JSON may also not be helpful since there is no contains operator sadly. We would need to do unnest no matter what. :/

cc @chowbao

@amishas157 amishas157 marked this pull request as ready for review July 29, 2024 21:49
@amishas157 amishas157 requested a review from a team as a code owner July 29, 2024 21:49
Copy link
Contributor

@chowbao chowbao left a comment

Choose a reason for hiding this comment

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

LGTM

@amishas157 amishas157 merged commit e963557 into master Jul 30, 2024
2 checks passed
@sydneynotthecity sydneynotthecity deleted the feature/hubble-500/export-signatures branch November 21, 2024 03:45
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