Issue with bigint columns containing null in recipe's input dataset
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 64/100
Hướng nghiên cứu
Bắt đầu trong recipe.py, sau đó lần theo process_dataframe() và lệnh gọi input_parameters_dataset.get_dataframe(infer_with_pandas=False). Tái hiện với một dataset được PostgreSQL hỗ trợ, chứa một cột bigint nullable không được sử dụng và một tham số id; được xem là hoàn tất khi recipe đọc và xử lý đầu vào mà không bị lỗi trước HTTP request đầu tiên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
So some testing.
- As a dataset tested about 1 million rows against a well known API system performance is comparable.
- When I tried to use this in the Recipe form I got a different error. May not be related to the changes you just made. The following anallysis was written up by Claude AI.
Title: Recipe fails on a SQL-backed input when an unused column is a nullable integer
Plugin: API Connect 1.4.3 (failing) and 1.4.2 (working) —
recipe.pyline is identical in both, so this is not version-related
DSS: 14.7.3 local (failing), Dataiku Cloud (working)
Data Store: PostgreSQL local (failing), SPARK Parquet cloud (working.)What happens
The recipe reads its full input with DSS schema types enforced:
input_parameters_dataframe = input_parameters_dataset.get_dataframe(infer_with_pandas=False)pandas int64 cannot hold NA, so any int-typed column with empty values raises before
the first HTTP request — including columns the recipe never reads.
process_dataframe()only touchesself.column_to_parameter_dict.Why it looks intermittent
The same project, same recipe config, same data shape, on two backends:
Input backend Type of the unused timestamp column Result S3 / Parquet via Spark string (inferred) Runs PostgreSQL bigint, nullable ValueError The recipe has one parameter column,
id(string). The column that breaks the read is
a nullable Unix timestamp that is not a parameter column.Traceback
File "<string>", line 56, in <module> File ".../dataiku/core/dataset.py", line 766, in get_dataframe results = pd.read_table(dku_output, ...) ... ValueError: Integer column has NA values in column 8Steps to reproduce
- Create a PostgreSQL-backed dataset with a nullable
bigintcolumn.- Add a string column to use as the API parameter, e.g.
id.- Build an API Connect recipe on it, selecting only
idas the parameter column.- Run.
Current work around I changed the type of the input column to string. With that type change in the input. I seem to be able to process data successfully.
Originally posted by @tom-aspireleaders in #84
- Ngôn ngữ chính
- Python
- Star
- 4
- Fork
- 4
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 dataiku/dss-plugin-api-connect
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
-
Paging start from "1"Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Infinite pagingĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Need proxy supportĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
dataiku/dss-plugin-api-connect#19 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của dataiku/dss-plugin-api-connect
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
pydot/pydot#601 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
letsencrypt/cp-cps#361 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
CI: startup_failure because callers grant fewer permissions than ledger-app-workflows@v1 declaresCó thể đã có người làm @maykonmichel đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
LedgerHQ/app-boilerplate-rust#227 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
linuxmint/mintupdate#1107 ·