feat: make odc adapt to OceanBase 4.2 #541
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
type-feature
feat-adapt to ob 4.2
What this PR does / why we need it:
this pr makes odc adapt to OceanBase 4.2. we do things in this pr as follow:
the front end will create a new session when using recyclebin so that the observer will flashback the object to the schema where the connection connect to.
To avoid flashbacking a db object to an uncertain schema, we should add schema to the generated sql.
Here is an example:
TraceSpan
) structure of full-link trace and convert the fieldtags
's type fromList<Map<String, Object>>
toList<Object>
.we will get the json string on OceanBase 4.1 when
show trace format='json'
is executed:we do the same thing on OceanBase 4.2.1 and get a json string as follow:
as you can see: the structure of the json has been changed, and that is why the full-link trace does not work on OceanBase 4.2.
I change the structure of the pojo object and find another way to avoid this change.
Which issue(s) this PR fixes:
Fixes #94 #506
Special notes for your reviewer:
Additional documentation e.g., usage docs, etc.: