Update CQL to SQL translation details in documentation#2350
Open
renejeglinsky wants to merge 3 commits intomainfrom
Open
Update CQL to SQL translation details in documentation#2350renejeglinsky wants to merge 3 commits intomainfrom
renejeglinsky wants to merge 3 commits intomainfrom
Conversation
Clarified CQL behavior regarding != operator and its translation in SQL databases. Updated note on database-specific behavior for portable functions.
Added section on data loading order and handling large datasets.
renejeglinsky
commented
Jan 29, 2026
Comment on lines
+84
to
+98
| ## Data Loading Order | ||
|
|
||
| CAP loads CSV files in **alphabetical order by filename**. When tables have foreign key relationships, ensure parent tables load before child tables to avoid constraint violations. | ||
|
|
||
| **Example:** | ||
| ``` | ||
| db/data/ | ||
| ├── sap.capire.bookshop-Authors.csv # Loads first (parent) | ||
| └── sap.capire.bookshop-Books.csv # Loads second (references Authors) | ||
| ``` | ||
|
|
||
| The filename prefix ensures correct order: `Authors` loads before `Books` alphabetically. If you encounter foreign key violations, verify your file naming follows dependency order. | ||
|
|
||
| > [!tip] Large Datasets | ||
| > For datasets with thousands of rows, consider using database-specific bulk loading tools instead of CSV files. The CSV mechanism loads all data in a single transaction, which can cause memory issues and long startup times. |
Contributor
Author
There was a problem hiding this comment.
Another proposal by AI. I don't think that this is true, but how is the actual behavior?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@danjoa Some edits by AI that I wanted to get a review on.
Clarified CQL behavior regarding != operator and its translation in SQL databases. Updated note on database-specific behavior for portable functions.