You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/09/14 19:15:34 UTC

[GitHub] [arrow-datafusion] alamb opened a new pull request, #3486: minor: fix bug in `downcast_value!` macro

alamb opened a new pull request, #3486:
URL: https://github.com/apache/arrow-datafusion/pull/3486

   # Which issue does this PR close?
   
   N/A
   
    # Rationale for this change
   There is a bug pointed out by @iajoiner  https://github.com/apache/arrow-datafusion/pull/3484#issuecomment-1247192612
   
   We don't see the problem because the only uses of the variant of the macro are all in generics that use `T` 
   
   When I remove that variant, you can see the locations
   
   ```
   error: no rules expected the token `,`
      --> datafusion/physical-expr/src/aggregate/approx_distinct.rs:252:58
       |
   252 |             downcast_value!(values[0], GenericBinaryArray, T);
       |                                                          ^ no rules expected this token in macro call
   
   error: no rules expected the token `,`
      --> datafusion/physical-expr/src/aggregate/approx_distinct.rs:268:58
       |
   268 |             downcast_value!(values[0], GenericStringArray, T);
       |                                                          ^ no rules expected this token in macro call
   
   error: no rules expected the token `,`
      --> datafusion/physical-expr/src/aggregate/approx_distinct.rs:284:82
       |
   284 |         let array: &PrimitiveArray<T> = downcast_value!(values[0], PrimitiveArray, T);
       |                                                                                  ^ no rules expected this token in macro call
   ```
   
   # What changes are included in this PR?
   1. Change `T` to `$T` 
   
   # Are there any user-facing changes?
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] yjshen merged pull request #3486: minor: fix bug in `downcast_value!` macro (`T` --> `$T`)

Posted by GitBox <gi...@apache.org>.
yjshen merged PR #3486:
URL: https://github.com/apache/arrow-datafusion/pull/3486


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] codecov-commenter commented on pull request #3486: minor: fix bug in `downcast_value!` macro (`T` --> `$T`)

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #3486:
URL: https://github.com/apache/arrow-datafusion/pull/3486#issuecomment-1247237762

   # [Codecov](https://codecov.io/gh/apache/arrow-datafusion/pull/3486?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#3486](https://codecov.io/gh/apache/arrow-datafusion/pull/3486?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (adb4eb8) into [master](https://codecov.io/gh/apache/arrow-datafusion/commit/9d028b3ac3e1d9e702af088a7620826c58f3c115?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (9d028b3) will **increase** coverage by `0.00%`.
   > The diff coverage is `0.00%`.
   
   ```diff
   @@           Coverage Diff           @@
   ##           master    #3486   +/-   ##
   =======================================
     Coverage   85.75%   85.76%           
   =======================================
     Files         299      299           
     Lines       55282    55282           
   =======================================
   + Hits        47409    47410    +1     
   + Misses       7873     7872    -1     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/arrow-datafusion/pull/3486?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [datafusion/common/src/lib.rs](https://codecov.io/gh/apache/arrow-datafusion/pull/3486/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZGF0YWZ1c2lvbi9jb21tb24vc3JjL2xpYi5ycw==) | `0.00% <0.00%> (ø)` | |
   | [datafusion/expr/src/logical\_plan/plan.rs](https://codecov.io/gh/apache/arrow-datafusion/pull/3486/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZGF0YWZ1c2lvbi9leHByL3NyYy9sb2dpY2FsX3BsYW4vcGxhbi5ycw==) | `77.85% <0.00%> (+0.16%)` | :arrow_up: |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] ursabot commented on pull request #3486: minor: fix bug in `downcast_value!` macro (`T` --> `$T`)

Posted by GitBox <gi...@apache.org>.
ursabot commented on PR #3486:
URL: https://github.com/apache/arrow-datafusion/pull/3486#issuecomment-1247476350

   Benchmark runs are scheduled for baseline = 06f01eaf65b78d73ffc7fb0bf95619e1e884e850 and contender = f52d8aff2e7975403699268225bca0a9efbe7076. f52d8aff2e7975403699268225bca0a9efbe7076 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/cdf2db2ce6f7448a8fa3b3593a3a91c5...83b2d8b1a5ef40ce8a470b3789f4bd15/)
   [Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] [test-mac-arm](https://conbench.ursa.dev/compare/runs/480a7d75d75e41329dabff92ac1cc37f...faded07207184ec6beaeea1fa99cc636/)
   [Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/224f4d10bb064f8395f5e210dfccc8eb...abd04a12f6f84ff3b2867f1f466547dd/)
   [Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/72686cde595e49b795eb09238635f3dd...ccdd29dd3146491faa84417e80bf87dc/)
   Buildkite builds:
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
   test-mac-arm: Supported benchmark langs: C++, Python, R
   ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
   ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org