Skip to content
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

clean partition enhance #19

Merged

Conversation

yokofly
Copy link
Collaborator

@yokofly yokofly commented Oct 15, 2024

  1. use distinct keyword to reduce duplicate parition dropped
  2. apply more common partition mode to date
try use below query to match the partition daily
                SELECT DISTINCT partition
                FROM system.parts
                WHERE table = 'trade_data'
                  AND (partition LIKE '%20241015%' OR partition LIKE '%2024-10-15%' OR partition LIKE '%2024_10_15%' OR partition LIKE '%2024/10/15%')

12:48AM INF Retrieved partitions [(20241015,'SNAP')] for table: trade_data
12:48AM INF Successfully dropped partition (20241015,'SNAP') from table trade_data
12:48AM INF Finished cleaning partitions for table: trade_data

fix #18

1. use distinct keyword to reduce duplicate parition dropped
2. apply more common partition mode to date
@yokofly yokofly merged commit 7c50e8a into timeplus-io:main Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enable more partition by pattern match
1 participant