deprecated note to use amount_raw - #301
Merged
ttboogie merged 1 commit intoJul 17, 2026
Merged
Conversation
chowbao
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add a deprecation note to the
token_transfers_raw.amountcolumn doc, steering readers toamount_raw.Why
amounthardcodes a fixed 7-decimal scale (amount_raw* 0.0000001) in stellar-etl'stoken_transfer.go, regardless of the token's declared decimals, so it is wrong for any non-7-decimal token. The dbt layer already recomputes the correctly scaled amount fromamount_rawdownstream (int_token_transfer_enrichment), so marts are unaffected, but theamount_floatdoc block gave no warning. This adds the caveat so it shows in dbt docs.Part of a set with stellar/stellar-etl-airflow#956 (BQ column description) and stellar/stellar-docs#2632 (public data dictionary).
Known limitations
Doc-only. The underlying scaling behavior in stellar-etl is not changed here.
PR Checklist
PR Structure
Thoroughness
Release planning