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

AthenaJDBC Error when adding a partition with the date type #12

Open
ebirukov opened this issue Nov 11, 2021 · 1 comment
Open

AthenaJDBC Error when adding a partition with the date type #12

ebirukov opened this issue Nov 11, 2021 · 1 comment

Comments

@ebirukov
Copy link

Only the string type of partition is wrapped in quotes, The "date" type in the partition is not quoted

if (p.getType().equals("string")) {
// add quotes to appended value
specAppend = "'" + partition.getValues().get(i) + "'";
} else {
// don't quote the appended value
specAppend = partition.getValues().get(i);

It cause AthenaJDBC Error for hive statement like alter table t1 add if not exists partition(date='2021-11-11')

ebirukov pushed a commit to perfectplaystudio/aws-glue-catalog-sync-agent-for-hive that referenced this issue Nov 11, 2021
IanMeyers added a commit that referenced this issue Jan 18, 2022
Adding support for quoted string and date types, with unit test
@IanMeyers
Copy link
Contributor

This is fixed in version 1.3.1-SNAPSHOT.

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

No branches or pull requests

2 participants