-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
support to read tables of inconsistent schema #494
Conversation
6591a34
to
e486a30
Compare
new String[] { | ||
"+I[111, user_111, Shanghai, 123567891234, user_111@foo.com]", | ||
"+I[121, user_121, Shanghai, 123567891234, null]", | ||
"+I[211, user_211, Shanghai, 123567891234, null]", | ||
"+I[221, user_221, Shanghai, 123567891234, user_221@foo.com]", | ||
"-U[111, user_111, Shanghai, 123567891234, user_111@foo.com]", | ||
"+U[111, user_111, Shanghai, 123567891234, user_111@bar.org]", | ||
"-U[211, user_211, Shanghai, 123567891234, null]", | ||
"+U[211, user_211, HangZhou, 123567891234, null]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can order the records for better understanding, because we call assertEqualsInAnyOrder
later
// should drop the userDatabase1 and userDatabase2 | ||
for (UniqueDatabase database : new UniqueDatabase[]{userDatabase1, userDatabase2}) { | ||
try (Connection connection = database.getJdbcConnection(); | ||
Statement statement = connection.createStatement()) { | ||
statement.execute("drop database " + database.getDatabaseName()); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this?
name VARCHAR(255) NOT NULL DEFAULT 'flink', | ||
address VARCHAR(1024), | ||
phone_number VARCHAR(512), | ||
email VARCHAR(255) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use another field name which is different with the table in database1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @luoyuxia for the update, LGTM once the build pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
No description provided.