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

Fix incomplete replacement in create #327

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

wyxxxcat
Copy link
Contributor

@wyxxxcat wyxxxcat commented Dec 17, 2024

before

[2024-12-17 10:49:21.724] DEBUG original create view sql is 
CREATE VIEW `test_view_alias_udf_with_db` AS (select `wyx`.`alias_function_create_view_test`(`internal`.`wyx`.`create_view_table1`.`id`) 
as `c1`,abs(`internal`.`wyx`.`create_view_table1`.`id`) 
from `internal`.`wyx`.`create_view_table1`);, 
after replace, 
now sql is 
CREATE VIEW `test_view_alias_udf_with_db` 
AS (select `wyx`.`alias_function_create_view_test`(`internal`.`wyx1`.`create_view_table1`.`id`) 
as `c1`,abs(`internal`.`wyx1`.`create_view_table1`.`id`) 
from `internal`.`wyx1`.`create_view_table1`); 
job=test line=base/spec.go:630

now

[2024-12-17 11:36:24.239]  WARN job sync failed, job: test, err: exec sql CREATE VIEW `db1`.`test_view_alias_udf_with_db` AS (select `db1`.`alias_function_create_view_test`(`internal`.`db1`.`create_view_table1`.`id`) as `c1`,abs(`internal`.`db1`.`create_view_table1`.`id`) from `internal`.`db1`.`create_view_table1`); failed: [normal] Error 1105 (HY000): errCode = 2, detailMessage = Can not found function 'db1.alias_function_create_view_test'

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.

1 participant