Skip to content

Commit

Permalink
MONDRIAN/FENNEL/FARRAGO: Comply with latest checkFile.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 13195]
  • Loading branch information
julianhyde committed Nov 28, 2009
1 parent d2acf2e commit bbda64a
Show file tree
Hide file tree
Showing 10 changed files with 144 additions and 147 deletions.
120 changes: 60 additions & 60 deletions src/main/mondrian/olap/Scanner.java
Expand Up @@ -234,67 +234,67 @@ private void initReswords() {
// awk '{printf "initResword(%20s,%c%s%c);",$1,34,$1,34}'
m_resWordsTable = new Hashtable<String, Integer>();
iMaxResword = 0;
// initResword(ParserSym.ALL , "ALL");
initResword(ParserSym.AND , "AND");
initResword(ParserSym.AS , "AS");
// initResword(ParserSym.ASC , "ASC");
initResword(ParserSym.AXIS , "AXIS");
// initResword(ParserSym.BACK_COLOR , "BACK_COLOR");
// initResword(ParserSym.BASC , "BASC");
// initResword(ParserSym.BDESC , "BDESC");
// initResword(ParserSym.ALL, "ALL");
initResword(ParserSym.AND, "AND");
initResword(ParserSym.AS, "AS");
// initResword(ParserSym.ASC, "ASC");
initResword(ParserSym.AXIS, "AXIS");
// initResword(ParserSym.BACK_COLOR, "BACK_COLOR");
// initResword(ParserSym.BASC, "BASC");
// initResword(ParserSym.BDESC, "BDESC");
// CAST is a mondrian extension
initResword(ParserSym.CAST , "CAST");
initResword(ParserSym.CASE , "CASE");
initResword(ParserSym.CELL , "CELL");
// initResword(ParserSym.CELL_ORDINAL , "CELL_ORDINAL");
initResword(ParserSym.CHAPTERS , "CHAPTERS");
// initResword(ParserSym.CHILDREN , "CHILDREN");
initResword(ParserSym.COLUMNS , "COLUMNS");
// initResword(ParserSym.DESC , "DESC");
initResword(ParserSym.DIMENSION , "DIMENSION");
initResword(ParserSym.ELSE , "ELSE");
initResword(ParserSym.EMPTY , "EMPTY");
initResword(ParserSym.END , "END");
// initResword(ParserSym.FIRSTCHILD , "FIRSTCHILD");
// initResword(ParserSym.FIRSTSIBLING , "FIRSTSIBLING");
// initResword(ParserSym.FONT_FLAGS , "FONT_FLAGS");
// initResword(ParserSym.FONT_NAME , "FONT_NAME");
// initResword(ParserSym.FONT_SIZE , "FONT_SIZE");
// initResword(ParserSym.FORE_COLOR , "FORE_COLOR");
// initResword(ParserSym.FORMATTED_VALUE , "FORMATTED_VALUE");
// initResword(ParserSym.FORMAT_STRING , "FORMAT_STRING");
initResword(ParserSym.FROM , "FROM");
initResword(ParserSym.IS , "IS");
initResword(ParserSym.IN , "IN");
// initResword(ParserSym.LAG , "LAG");
// initResword(ParserSym.LASTCHILD , "LASTCHILD");
// initResword(ParserSym.LASTSIBLING , "LASTSIBLING");
// initResword(ParserSym.LEAD , "LEAD");
initResword(ParserSym.MATCHES , "MATCHES");
initResword(ParserSym.MEMBER , "MEMBER");
// initResword(ParserSym.MEMBERS , "MEMBERS");
// initResword(ParserSym.NEXTMEMBER , "NEXTMEMBER");
initResword(ParserSym.NON , "NON");
initResword(ParserSym.NOT , "NOT");
initResword(ParserSym.NULL , "NULL");
initResword(ParserSym.ON , "ON");
initResword(ParserSym.OR , "OR");
initResword(ParserSym.PAGES , "PAGES");
// initResword(ParserSym.PARENT , "PARENT");
// initResword(ParserSym.PREVMEMBER , "PREVMEMBER");
initResword(ParserSym.PROPERTIES , "PROPERTIES");
// initResword(ParserSym.RECURSIVE , "RECURSIVE");
initResword(ParserSym.ROWS , "ROWS");
initResword(ParserSym.SECTIONS , "SECTIONS");
initResword(ParserSym.SELECT , "SELECT");
initResword(ParserSym.SET , "SET");
// initResword(ParserSym.SOLVE_ORDER , "SOLVE_ORDER");
initResword(ParserSym.THEN , "THEN");
// initResword(ParserSym.VALUE , "VALUE");
initResword(ParserSym.WHEN , "WHEN");
initResword(ParserSym.WHERE , "WHERE");
initResword(ParserSym.WITH , "WITH");
initResword(ParserSym.XOR , "XOR");
initResword(ParserSym.CAST, "CAST");
initResword(ParserSym.CASE, "CASE");
initResword(ParserSym.CELL, "CELL");
// initResword(ParserSym.CELL_ORDINAL, "CELL_ORDINAL");
initResword(ParserSym.CHAPTERS, "CHAPTERS");
// initResword(ParserSym.CHILDREN, "CHILDREN");
initResword(ParserSym.COLUMNS, "COLUMNS");
// initResword(ParserSym.DESC, "DESC");
initResword(ParserSym.DIMENSION, "DIMENSION");
initResword(ParserSym.ELSE, "ELSE");
initResword(ParserSym.EMPTY, "EMPTY");
initResword(ParserSym.END, "END");
// initResword(ParserSym.FIRSTCHILD, "FIRSTCHILD");
// initResword(ParserSym.FIRSTSIBLING, "FIRSTSIBLING");
// initResword(ParserSym.FONT_FLAGS, "FONT_FLAGS");
// initResword(ParserSym.FONT_NAME, "FONT_NAME");
// initResword(ParserSym.FONT_SIZE, "FONT_SIZE");
// initResword(ParserSym.FORE_COLOR, "FORE_COLOR");
// initResword(ParserSym.FORMATTED_VALUE, "FORMATTED_VALUE");
// initResword(ParserSym.FORMAT_STRING, "FORMAT_STRING");
initResword(ParserSym.FROM, "FROM");
initResword(ParserSym.IS, "IS");
initResword(ParserSym.IN, "IN");
// initResword(ParserSym.LAG, "LAG");
// initResword(ParserSym.LASTCHILD, "LASTCHILD");
// initResword(ParserSym.LASTSIBLING, "LASTSIBLING");
// initResword(ParserSym.LEAD, "LEAD");
initResword(ParserSym.MATCHES, "MATCHES");
initResword(ParserSym.MEMBER, "MEMBER");
// initResword(ParserSym.MEMBERS, "MEMBERS");
// initResword(ParserSym.NEXTMEMBER, "NEXTMEMBER");
initResword(ParserSym.NON, "NON");
initResword(ParserSym.NOT, "NOT");
initResword(ParserSym.NULL, "NULL");
initResword(ParserSym.ON, "ON");
initResword(ParserSym.OR, "OR");
initResword(ParserSym.PAGES, "PAGES");
// initResword(ParserSym.PARENT, "PARENT");
// initResword(ParserSym.PREVMEMBER, "PREVMEMBER");
initResword(ParserSym.PROPERTIES, "PROPERTIES");
// initResword(ParserSym.RECURSIVE, "RECURSIVE");
initResword(ParserSym.ROWS, "ROWS");
initResword(ParserSym.SECTIONS, "SECTIONS");
initResword(ParserSym.SELECT, "SELECT");
initResword(ParserSym.SET, "SET");
// initResword(ParserSym.SOLVE_ORDER, "SOLVE_ORDER");
initResword(ParserSym.THEN, "THEN");
// initResword(ParserSym.VALUE, "VALUE");
initResword(ParserSym.WHEN, "WHEN");
initResword(ParserSym.WHERE, "WHERE");
initResword(ParserSym.WITH, "WITH");
initResword(ParserSym.XOR, "XOR");

m_aResWords = new String[iMaxResword + 1];
Enumeration<String> e = m_resWordsTable.keys();
Expand Down
6 changes: 3 additions & 3 deletions src/main/mondrian/olap/fun/NativizeSetFunDef.java
Expand Up @@ -535,9 +535,9 @@ private Object flattenSetFunDef(ResolvedFunCall call) {
addSentinelMembers(newArgs);
if (newArgs.size() != call.getArgCount()) {
return new ResolvedFunCall(
call.getFunDef()
, newArgs.toArray(new Exp[newArgs.size()])
, call.getType());
call.getFunDef(),
newArgs.toArray(new Exp[newArgs.size()]),
call.getType());
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/mondrian/tui/XmlUtil.java
Expand Up @@ -983,7 +983,7 @@ public static void validate(
String docStr,
String schemaLocationPropertyValue,
EntityResolver resolver)
throws IOException ,
throws IOException,
SAXException
{
if (resolver == null) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/mondrian/tui/XmlaSupport.java
Expand Up @@ -965,8 +965,8 @@ public static boolean validateNodes(Node[] nodes)
rootNode.removeChild(schemaNode);

// Convert nodes to Documents.
Document schemaDoc = XmlUtil.newDocument(schemaNode , true);
Document dataDoc = XmlUtil.newDocument(rootNode , true);
Document schemaDoc = XmlUtil.newDocument(schemaNode, true);
Document dataDoc = XmlUtil.newDocument(rootNode, true);

String xmlns = XmlUtil.getNamespaceAttributeValue(dataDoc);
String schemaLocationPropertyValue = xmlns + ' ' + "xmlschema";
Expand Down
6 changes: 2 additions & 4 deletions testsrc/main/mondrian/olap/fun/NativizeSetFunDefTest.java
Expand Up @@ -1072,8 +1072,7 @@ public void DISABLED_testTransformsWithSeveralDimensionsNestedOnRows() {
+ " SET [COG_OQP_INT_s1] AS 'CROSSJOIN({[Product].[Product Name].MEMBERS}, {[Customers].[Name].MEMBERS})' "
+ "SELECT {[Measures].[Unit Sales]} DIMENSION PROPERTIES PARENT_LEVEL, CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON AXIS(0),"
+ " NativizeSet([COG_OQP_INT_s4]) DIMENSION PROPERTIES PARENT_LEVEL, CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON AXIS(1) "
+ "FROM [Sales] CELL PROPERTIES VALUE, FORMAT_STRING"
,
+ "FROM [Sales] CELL PROPERTIES VALUE, FORMAT_STRING",
"with set [COG_OQP_INT_s4] as 'Crossjoin({[Education Level].[All Education Levels].[Graduate Degree]}, [COG_OQP_INT_s3])'\n"
+ " set [COG_OQP_INT_s3] as 'Crossjoin({[Marital Status].[All Marital Status].[S]}, [COG_OQP_INT_s2])'\n"
+ " set [COG_OQP_INT_s2] as 'Crossjoin({[Gender].[All Gender].[F]}, [COG_OQP_INT_s1])'\n"
Expand Down Expand Up @@ -1113,8 +1112,7 @@ public void testTransformsComplexQueryWithGenerateAndAggregate() {
+ "GENERATE({[Marital Status].[All Marital Status].[S]}, CROSSJOIN(HEAD({([Marital Status].CURRENTMEMBER)}, "
+ "IIF(COUNT([COG_OQP_INT_s4], INCLUDEEMPTY) > 0, 1, 0)), [COG_OQP_INT_s3]), ALL)), ALL))"
+ " DIMENSION PROPERTIES PARENT_LEVEL, CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON AXIS(1)"
+ " FROM [Sales] CELL PROPERTIES VALUE, FORMAT_STRING"
,
+ " FROM [Sales] CELL PROPERTIES VALUE, FORMAT_STRING",
"with member [Product].[COG_OQP_INT_umg1] as "
+ "'IIf(([Measures].CurrentMember IS [Measures].[Unit Sales]), ([Product].[COG_OQP_INT_m2], [Measures].[Unit Sales]), "
+ "Aggregate({[Product].[Product Name].Members}))', SOLVE_ORDER = 4.0\n"
Expand Down

0 comments on commit bbda64a

Please sign in to comment.