Skip to content

Code cleanup & message improvements#13778

Merged
abhishekagarwal87 merged 5 commits intoapache:masterfrom
paul-rogers:230208-clean
Feb 15, 2023
Merged

Code cleanup & message improvements#13778
abhishekagarwal87 merged 5 commits intoapache:masterfrom
paul-rogers:230208-clean

Conversation

@paul-rogers
Copy link
Contributor

This PR is a collection if minor edits done as part of the Catalog project. Pulled out here to reduce the size of the catalog PR.

The edits include:

  • Fix spacing
  • Add type parameters to some types that omit them (to prevent the IDE from flagging spurious warnings)
  • Add toString() methods to formats so tests compare correctly. Without this, an UT with an external data source will fail if the two formats are not the same object. The change allows comparison as long as the two formats have identical values.
  • IT doc revisions
  • Error message edits
  • Display UT query results when tests fail. This makes it easy to copy/paste the correct results into the test.
  • When creating alert records, omit the query field if it is null. (Else, the original error is masked by an NPE in the logging code.)

No substantial changes are in the PR.

Release note

No user-visible changes.


This PR has:

  • been self-reviewed.

Correct spacing
Add type parameters
Add toString() methods to formats so tests compare correctly
IT doc revisions
Error message edits
Display UT query results when tests fail
Comment on lines +149 to +152
return "FlatTextInputFormat{"
+ "delimiter=\"" + delimiter
+ "\"listDelimiter="
+ listDelimiter == null ? "null" : "\"" + listDelimiter + "\""

Check warning

Code scanning / CodeQL

Useless null check

This check is useless, since [... + ...](1) always is non-null.
@abhishekagarwal87 abhishekagarwal87 merged commit 333196d into apache:master Feb 15, 2023
@clintropolis clintropolis added this to the 26.0 milestone Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants