You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "abipc (JIRA)" <ji...@apache.org> on 2018/05/25 11:40:00 UTC
[jira] [Assigned] (IMPALA-6336) Follow code convention for function
method in fe
[ https://issues.apache.org/jira/browse/IMPALA-6336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
abipc reassigned IMPALA-6336:
-----------------------------
Assignee: abipc
> Follow code convention for function method in fe
> ------------------------------------------------
>
> Key: IMPALA-6336
> URL: https://issues.apache.org/jira/browse/IMPALA-6336
> Project: IMPALA
> Issue Type: Improvement
> Components: Infrastructure
> Affects Versions: Impala 2.10.0
> Reporter: Jinchul Kim
> Assignee: abipc
> Priority: Major
> Labels: newbie
>
> Regarding coding convention, especially function name, in Java, I am confusing which function name is right: lowerCamelCase or UpperCamelCase. I guess we may follow lowerCamelCase: https://google.github.io/styleguide/javaguide.html#s5.2.3-method-names
> By the way, some codes did not follow the convention. Please see fe/src/test/java/org/apache/impala/analysis/AnalyzerTest.java#L113,126. I could see similar case in some files. Do we have to align function name? What do you think about this?
> > From Tim's comment:
> Yes, Java should use lowerCamelCase. C++ uses UpperCamelCase. This does seem inconsistent but is inherited from the Google styles. I agree that some functions in Java are not following the convention, e.g. AnalyzesOk(). I don't know why they are different. It would be nice to fix them to be consistent but I'd be concerned about the merge conflicts resulting.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org