Closed EloyMartinez closed 1 week ago
The changes involve a modification to the as_str
method of the DataType
enum in the data_type.rs
file. The logging statement for the DataType::Unknown
variant has been updated to prevent potential stack overflow issues by changing the formatting from {}
to {:?}
. This adjustment ensures that the logging correctly handles unknown data types without causing runtime errors. There are no alterations to the signatures of exported or public entities.
File | Change Summary |
---|---|
src/lib/src/model/data_frame/schema/data_type.rs | Modified the as_str method to change logging from {} to {:?} for DataType::Unknown to prevent stack overflow. No changes to public or exported entity signatures. |
In the code where data types dwell,
An unknown once rang a warning bell.
With a tweak and a change, now it’s clear,
Logging safely, we have no fear!
Hopping through code, we celebrate,
A fix so fine, it’s truly great! 🐇✨
[!WARNING]
Rate limit exceeded
@EloyMartinez has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 21 minutes and 21 seconds before requesting another review.
⌛ How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.🚦 How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://docs.coderabbit.ai/faq) for further information.📥 Commits
Reviewing files that changed from the base of the PR and between e6befcba0b2a16e1602372e3a010886b14912ade and 682cf7e0f5d3d1de5b89d7af15d049326fa08258.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The problem was that inside as_str(), it tries to log the self value using {} formatting, which: Calls Display again Which calls as_str() again Which tries to log again And so on... For all other data types, as_str() just returns a string literal without trying to format self, so there's no recursion. To fix this, we just used {:?} in the error log instead of {}.
Summary by CodeRabbit