Skip to content

feat: Add date_partition_column_format for spark source #5273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joeyutong
Copy link
Contributor

@joeyutong joeyutong commented Apr 15, 2025

What this PR does / why we need it:

Add format option for date partition column of spark source. e.g.

spark_source = SparkSource(
    ...
    date_partition_column="effective_date",
    date_partition_column_format="%Y%m%d",
)

It is applied to the sql of pull_latest_from_table_or_query or get_historical_features

SELECT
...
WHERE effective_date >= '20210101' and effective_date <= '20210101'

Which issue(s) this PR fixes:

Misc

@joeyutong joeyutong requested a review from a team as a code owner April 15, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants