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

[migrate] Support migrate table with specific separator #4000

Closed
wants to merge 3 commits into from

Conversation

xuzifu666
Copy link
Member

@xuzifu666 xuzifu666 commented Aug 19, 2024

Purpose

Linked issue: close #xxx

Support migrate table with specific separator

Currently options in migrate table only support separate by "," which cannot hold all conditions,such as if user want to set option like 'orc.encrypt' = 'pii:id,name' to do orc encrypt condition,this pr is aim to support with specific separator in options separate when call migrate_table.

ParameterUtils##parseCommaSeparatedKeyValues only separate keyValues with comma.

1724069469632.png

Tests

API and Format

Documentation

@xuzifu666 xuzifu666 closed this Aug 19, 2024
@xuzifu666 xuzifu666 reopened this Aug 19, 2024
@@ -63,7 +63,7 @@ We can add our table properties while importing by sys.migrate_table('<database>
<tableproperties> here should be separated by ",". For example:

```sql
CALL sys.migrate_table('hive', 'my_db.wait_to_upgrate', 'file.format=orc,read.batch-size=2096,write-only=true')
CALL sys.migrate_table('hive', 'my_db.wait_to_upgrate', 'file.format=orc,read.batch-size=2096,write-only=true', ',')
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe it is better to introduce options_map, this arguement is standard SQL map

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.

2 participants