Queries with no results return a null array
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Bắt đầu với StatementBuilder và đường dẫn InventoryServiceInterface#getAdUnitsByStatement(), sau đó xem lại phần thảo luận liên quan trong #214. Kiểm tra cách XYPage#getResults() được tạo ra cho các kết quả truy vấn rỗng trong các triển khai truy vấn khác. Hoàn thành nghĩa là mọi triển khai bị ảnh hưởng đều trả về các mảng rỗng thay vì null.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello!
This library allows you to query via StatementBuilder. When you run a query that returns no results, the XYPage#getResults() returns null. On my side, this has only been confirmed to be true with InventoryServiceInterface#getAdUnitsByStatement(), however it would be right to assume it is true for other query implementations as well.
Returning null arrays is an anti-pattern. Can this be fixed to return empty arrays instead? This has already been mentioned in #214.
- Ngôn ngữ chính
- Java
- Star
- 234
- Fork
- 360
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleads/googleads-java-lib
-
googleads/googleads-java-lib#284 · 3 bình luận · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
googleads/googleads-java-lib#273 ·
-
Enable keepAlive at Socket level Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
googleads/googleads-java-lib#269 ·
-
enhancement P2
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
googleads/googleads-java-lib#268 · 2 bình luận · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
googleads/googleads-java-lib#262 ·
Tất cả issue của googleads/googleads-java-lib
Issue tương tự
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Đang mởarea/plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kestra-io/plugin-kestra#190 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Add canonical URLs and a sitemap Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/rocketmq-dashboard#5064 ·
-
Consent portal: creating a duplicate Purpose shows a generic error instead of "already exists" Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
wso2/dpdp-accelerator#287 ·