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

Query Converter: Add very basic expression converter utility with CLI #289

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

amotl
Copy link
Member

@amotl amotl commented Oct 10, 2024

About

DynamoDB: Added query expression converter for relocating object references, to support query migrations after the breaking change with the SQL DDL schema, by v0.0.27.

echo "SELECT * FROM foobar WHERE data['PK']" > input.sql
ctk query convert --type=ddb-relocate-pks --primary-keys=PK,SK input.sql > output.sql
cat output.sql
SELECT * FROM foobar WHERE pk['PK']

Documentation

https://cratedb-toolkit--289.org.readthedocs.build/query/convert.html

Install

pip install 'cratedb-toolkit @ git+https://github.com/crate/cratedb-toolkit.git@query-converter'

@cla-bot cla-bot bot added the cla-signed label Oct 10, 2024
@amotl amotl requested a review from lservini October 10, 2024 21:44
@amotl amotl marked this pull request as ready for review October 10, 2024 21:45
DynamoDB: Added query expression converter for relocating object
references, to support query migrations after the breaking change
with the SQL DDL schema, by v0.0.27.
@amotl amotl merged commit 702dd50 into main Oct 13, 2024
16 checks passed
@amotl amotl deleted the query-converter branch October 13, 2024 19:50
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.

1 participant