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

extra character ; in LEFT_CleanUp_execute.sql is failing to clean up transfer tables #33

Closed
hpasumarthi opened this issue Apr 17, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@hpasumarthi
Copy link

hpasumarthi commented Apr 17, 2023

Hello Team,
We have found that LEFT_CleanUp_execute.sql is being generate with special character in the following line

-- To be run AFTER final RIGHT SQL statements.;

Which is causing the clean post script to fail with following message

2023-04-17 15:15:08,191 [pool-1-thread-3] INFO Cluster.runTableSql(484):LEFT:SQL:Post Migration Cleanup:-- To be run AFTER final RIGHT SQL statements.
2023-04-17 15:15:08,201 [pool-1-thread-3] ERROR Cluster.runTableSql(491):java.sql.SQLException: Error while compiling statement: FAILED: ParseException line 1:46 cannot recognize input near '' '' ''

Screenshot 2023-04-17 at 18 56 35

Can you please check the code and fix the left sql script.

Hemanth

dstreev added a commit to dstreev/hms-mirror that referenced this issue Apr 17, 2023
@dstreev dstreev self-assigned this Apr 17, 2023
@dstreev dstreev added the bug Something isn't working label Apr 17, 2023
@dstreev dstreev added this to the 1.5.4.5 milestone Apr 17, 2023
@dstreev dstreev closed this as completed Apr 17, 2023
@hpasumarthi
Copy link
Author

hpasumarthi commented Apr 24, 2023

Hi @dstreev we did managed to test this fix, looks like the issues still persist.

2023-04-24 11:11:08,440 [pool-1-thread-1] INFO Cluster.runTableSql(484):LEFT:SQL:Post Migration Cleanup:-- To be run AFTER final RIGHT SQL statements.
2023-04-24 11:11:08,452 [pool-1-thread-1] ERROR Cluster.runTableSql(491):java.sql.SQLException: Error while compiling statement: FAILED: ParseException line 1:46 cannot recognize input near '<EOF>' '<EOF>' '<EOF>'

can we test get this retested.

@dstreev dstreev reopened this Oct 15, 2024
@dstreev
Copy link
Collaborator

dstreev commented Oct 15, 2024

Fixed issue where we didn't have a CR/LF in clean up script causing the script to miss the "USE ;" statement.

@dstreev dstreev closed this as completed Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants