Skip to content

[FAQ] Column name from API not found when querying dlt-loaded table #224

@AsherJD-io

Description

@AsherJD-io

Course

data-engineering-zoomcamp

Question

Running a query like:

SELECT Trip_Pickup_DateTime FROM taxi_data.trips

results in a “Referenced column not found” error.

Answer

dlt normalizes column names to lowercase and converts them to snake_case.

Example:

Trip_Pickup_DateTime → trip_pickup_date_time

Inspect the schema using:

SELECT column_name
FROM information_schema.columns
WHERE table_schema = 'taxi_data'

Use the normalized column names in your queries.

Checklist

  • I have searched existing FAQs and this question is not already answered
  • The answer provides accurate, helpful information
  • I have included any relevant code examples or links

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions