phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

PHOENIX-7417 Remove commons-collections dependency

Open NihalJain opened this issue 1 year ago • 9 comments

  • Remove imports and replace with equivalent code
  • Add RestrictImports rule to restrict further usage of it in codebase

NihalJain avatar Oct 05 '24 18:10 NihalJain

We have same in query server also. Do we use same ticket for both PRs? Or raise new Jira for queryserver PR?

NihalJain avatar Oct 05 '24 18:10 NihalJain

Saw an import issue in code change. Went ahead and raised https://github.com/apache/phoenix/pull/1995/ as fixing manually is too cumbersome

NihalJain avatar Oct 06 '24 06:10 NihalJain

There is minimal functionality that we use here.

Wouldn't it be better to just get rid of this dependency ?

stoty avatar Oct 09 '24 11:10 stoty

Wouldn't it be better to just get rid of this dependency ?

Sure let me see if I can remove the usage of commons-collections altogether

NihalJain avatar Oct 12 '24 08:10 NihalJain

Wouldn't it be better to just get rid of this dependency ?

Sure let me see if I can remove the usage of commons-collections altogether

Done!

NihalJain avatar Oct 12 '24 10:10 NihalJain

please fix the checkstyle errors before commit (unless they are pre-existing)

stoty avatar Oct 14 '24 06:10 stoty

please fix the checkstyle errors before commit (unless they are pre-existing)

/phoenix-core-client/src/main/java/org/apache/phoenix/util/QueryBuilder.java:150: is new let me fix this

NihalJain avatar Oct 14 '24 07:10 NihalJain

Still +1

stoty avatar Oct 14 '24 08:10 stoty

Thank you @stoty I plan to fix this for other phoenix projects. PQS also depends on commons-collections. Raised PHOENIX-7430.

NihalJain avatar Oct 14 '24 09:10 NihalJain