Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Temp schema missing when using cohort demographics

Aperta
#2,457 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@oleg-odysseus ci sta già lavorando.

Dal 6/8/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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!

Lingua principale
Java
Stelle
153
Fork
187
Merge medio
1g 3h
PR unite (30g)
14

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OHDSI/WebAPI

Tutte le issue di OHDSI/WebAPI

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.