Skip to content

Commit

Permalink
Fix a few typos in javadoc.
Browse files Browse the repository at this point in the history
Add testcase for bug 1868075.
Include README in release, and convert to DOS format.


git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@134 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed Nov 4, 2008
1 parent bc2f3a1 commit 9c590aa
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 3 deletions.
3 changes: 3 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ ${jar-jdk14.file}"/>
<target name="srczip" depends="version">
<mkdir dir="${dist.dir}" />
<delete file="${dist.src.file}"/>
<exec command="unix2dos CHANGES.txt"/>
<exec command="unix2dos README.txt"/>
<zip
zipfile="${dist.src.file}"
update="true">
Expand All @@ -205,6 +207,7 @@ build.xml,
build.properties,
test.properties.example,
LICENSE.html,
CHANGES.txt,
README.txt,
VERSION.txt"
excludes="
Expand Down
4 changes: 3 additions & 1 deletion src/org/olap4j/query/package.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<html>
<body>
Provides an object model for building OLAP queries programmatically.
Provides an object model for building OLAP queries programmatically (experimental).

<p><b>NOTE</b>: This package is experimental. Classes may be renamed or removed in a future release of olap4j.

</body>
</html>
2 changes: 1 addition & 1 deletion src/org/olap4j/transform/package.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<body>
Provides services to transform MDX parse trees.
Provides services to transform MDX parse trees (experimental).

<p><b>NOTE</b>: This package is experimental. Classes may be renamed or removed in a future release of olap4j.

Expand Down
2 changes: 1 addition & 1 deletion src/org/olap4j/type/package.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<body>
Type system for MDX expessions.
Type system for MDX expressions.

</body>
</html>
63 changes: 63 additions & 0 deletions testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,69 @@ public void testMetadata() throws Exception {
measureNameSet);
}

/**
* Testcase for bug 1868075, "Query on ragged hierarchy gives only empty
* cells".
*/
public void testRagged() throws SQLException {
connection = tester.createConnection();
Statement statement = connection.createStatement();
final OlapStatement olapStatement =
tester.getWrapper().unwrap(statement, OlapStatement.class);
final CellSet cellSet =
olapStatement.executeOlapQuery("SELECT\n"
+ "{[Product].[All Products].[Drink].[Alcoholic Beverages].Children,\n"
+ "[Product].[All Products].[Food].[Baked Goods].Children} ON COLUMNS,\n"
+ "CrossJoin([Store].[All Stores].[USA].[CA].Children,\n"
+ "[Time].[1997].[Q1].Children) ON ROWS\n"
+ "FROM [Sales Ragged]");
String s = TestContext.toString(cellSet);
TestContext.assertEqualsVerbose(
TestContext.fold("Axis #0:\n" +
"{[Measures].[Unit Sales], [Geography].[All Geographys], [Store Size in SQFT].[All Store Size in SQFTs], [Store Type].[All Store Types], [Promotion Media].[All Media], [Promotions].[All Promotions], [Customers].[All Customers], [Education Level].[All Education Levels], [Gender].[All Gender], [Marital Status].[All Marital Status], [Yearly Income].[All Yearly Incomes]}\n" +
"Axis #1:\n" +
"{[Product].[All Products].[Drink].[Alcoholic Beverages].[Beer and Wine]}\n" +
"{[Product].[All Products].[Food].[Baked Goods].[Bread]}\n" +
"Axis #2:\n" +
"{[Store].[All Stores].[USA].[CA].[Alameda], [Time].[1997].[Q1].[1]}\n" +
"{[Store].[All Stores].[USA].[CA].[Alameda], [Time].[1997].[Q1].[2]}\n" +
"{[Store].[All Stores].[USA].[CA].[Alameda], [Time].[1997].[Q1].[3]}\n" +
"{[Store].[All Stores].[USA].[CA].[Beverly Hills], [Time].[1997].[Q1].[1]}\n" +
"{[Store].[All Stores].[USA].[CA].[Beverly Hills], [Time].[1997].[Q1].[2]}\n" +
"{[Store].[All Stores].[USA].[CA].[Beverly Hills], [Time].[1997].[Q1].[3]}\n" +
"{[Store].[All Stores].[USA].[CA].[Los Angeles], [Time].[1997].[Q1].[1]}\n" +
"{[Store].[All Stores].[USA].[CA].[Los Angeles], [Time].[1997].[Q1].[2]}\n" +
"{[Store].[All Stores].[USA].[CA].[Los Angeles], [Time].[1997].[Q1].[3]}\n" +
"{[Store].[All Stores].[USA].[CA].[San Francisco], [Time].[1997].[Q1].[1]}\n" +
"{[Store].[All Stores].[USA].[CA].[San Francisco], [Time].[1997].[Q1].[2]}\n" +
"{[Store].[All Stores].[USA].[CA].[San Francisco], [Time].[1997].[Q1].[3]}\n" +
"Row #0: \n" +
"Row #0: \n" +
"Row #1: \n" +
"Row #1: \n" +
"Row #2: \n" +
"Row #2: \n" +
"Row #3: 22\n" +
"Row #3: 63\n" +
"Row #4: 28\n" +
"Row #4: 59\n" +
"Row #5: 28\n" +
"Row #5: 39\n" +
"Row #6: 70\n" +
"Row #6: 51\n" +
"Row #7: 89\n" +
"Row #7: 51\n" +
"Row #8: 27\n" +
"Row #8: 54\n" +
"Row #9: 6\n" +
"Row #9: 2\n" +
"Row #10: 3\n" +
"Row #10: 7\n" +
"Row #11: 2\n" +
"Row #11: 10\n"),
s);

}
/**
* Tests members from a parent-child hierarchy.
*
Expand Down

0 comments on commit 9c590aa

Please sign in to comment.