Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Temp schema missing when using cohort demographics

Đang mở
#2,457 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@oleg-odysseus đang làm issue này rồi.

Từ ngày 6/8/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Getting this error on databricks note the cohort table is not being qualified with any temp schema:

USING DELTA
AS
SELECT
CAST(ethnicity_concept_id AS BIGINT) * 1000 + 5 AS covariate_id,
 cohort_definition_id,
 COUNT(*) AS sum_value
FROM
temp_cohort_dhgd0361 cohort
INNER JOIN optum_extended_dod.cdm_optum_extended_dod_v3492.person
 ON cohort.subject_id = person.person_id
WHERE ethnicity_concept_id IN (
 SELECT concept_id
 FROM optum_extended_dod.cdm_optum_extended_dod_v3492.concept
 WHERE LOWER(concept_class_id) = 'ethnicity'
 )
 AND cohort.cohort_definition_id IN (21214)
GROUP BY cohort_definition_id,
 ethnicity_concept_id]; nested exception is java.sql.SQLException: [Databricks][JDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: 42P01, Query: CREATE TAB***, Error message from Server: org.apache.hive.service.cli.HiveSQLException: Error running query: [TABLE_OR_VIEW_NOT_FOUND] org.apache.spark.sql.catalyst.ExtendedAnalysisException: [TABLE_OR_VIEW_NOT_FOUND] The table or view `temp_cohort_dhgd0361` cannot be found. Verify the spelling and correctness of the schema and catalog.

Note, did not see this on postgres, but postgres has 'true temp tables', so this query needs to be executed in a way that can handle temp schemas.

@oleg-odysseus , please look into this for a 2.15 hot fix. Thank you!

Ngôn ngữ chính
Java
Star
153
Fork
187
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OHDSI/WebAPI

Tất cả issue của OHDSI/WebAPI

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.