Skip to content

enhancement to allow custom partitions in ingestion #795

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

Merged

Conversation

nikhilsinhaparseable
Copy link
Contributor

to allow - add an optional header - X-P-Custom-Partition in stream creation API with comma separated values
the custom-partition will be stored in the stream.json file at the time of ingestion,
below validations are put in place -

  1. all events in the batch have the custom partitions
  2. max of 3 partitions are allowed
  3. custom partition values should not have a '.' in the log event
  4. custom partition value should not be empty in the log event

Prefixes will be created in the alphabetical order of the custom partition fields

sort order in the parquet will be p_timestamp/time_partition and the custom partition fields same sort order will be reflected in the manifest file

to allow - add an optional header - X-P-Custom-Partition in stream creation API with comma separated values
the custom-partition will be stored in the stream.json file
at the time of ingestion, below validations are put in place -
1. all events in the batch have the custom partitions
2. max of 3 partitions are allowed
3. custom partition values should not have a '.' in the log event
4. custom partition value should not be empty in the log event

Prefixes will be created in the alphabetical order of the custom partition fields

sort order in the parquet will be p_timestamp/time_partition and the custom partition fields
same sort order will be reflected in the manifest file
Copy link
Contributor

@Eshanatnight Eshanatnight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nitisht nitisht merged commit c33d8e9 into parseablehq:main May 16, 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.

3 participants