Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

1.1.2 BETA

  • Loading branch information...
commit cadceea5757569a4d90e7b02d8fcd4fe57318d66 1 parent c262085
ZD authored
View
2  backend/pom.xml
@@ -28,7 +28,7 @@
<parent>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</parent>
<artifactId>gooddata-cl-backend</artifactId>
View
2  backend/src/main/java/com/gooddata/connector/backend/AbstractSqlConnectorBackend.java
@@ -1177,7 +1177,7 @@ public void executeLoad(PdmSchema schema, DLIPart part, String dir, int[] snapsh
String cols = getLoadColumns(part, schema);
String whereClause = getLoadWhereClause(part, schema, snapshotIds);
String dliTable = getTableNameFromPart(part);
- String sql = "SELECT " + cols + " FROM " + dliTable.toUpperCase() + whereClause;
+ String sql = "SELECT " + cols + " FROM " + dliTable + whereClause;
String[] header = getLoadHeader(part);
CSVWriter cw = FileUtil.createUtf8CsvEscapingWriter(new File(file));
cw.writeNext(header);
View
14 backend/src/main/java/com/gooddata/connector/backend/DerbyConnectorBackend.java
@@ -157,7 +157,7 @@ protected String getLoadWhereClause(DLIPart part, PdmSchema schema, int[] snapsh
else
inClause = "" + i;
}
- whereClause = ",snapshots WHERE " + dliTable.toUpperCase() +
+ whereClause = ",snapshots WHERE " + dliTable +
".ID BETWEEN snapshots.firstid and snapshots.lastid AND snapshots.id IN (" + inClause + ")";
}
return whereClause;
@@ -168,10 +168,10 @@ protected String getLoadWhereClause(DLIPart part, PdmSchema schema, int[] snapsh
*/
protected String decorateFactColumnForLoad(String cols, PdmColumn cl, String table) {
if (cols.length() > 0)
- cols += ",ATOD(" + table.toUpperCase() + "." +
+ cols += ",ATOD(" + table + "." +
StringUtil.toIdentifier(cl.getName())+")";
else
- cols += "ATOD(" + table.toUpperCase() + "." +
+ cols += "ATOD(" + table + "." +
StringUtil.toIdentifier(cl.getName())+")";
return cols;
}
@@ -181,10 +181,10 @@ protected String decorateFactColumnForLoad(String cols, PdmColumn cl, String tab
*/
protected String decorateLookupColumnForLoad(String cols, PdmColumn cl, String table) {
if (cols != null && cols.length() > 0)
- cols += ",CAST(" + table.toUpperCase() + "." + StringUtil.toIdentifier(cl.getName())+
+ cols += ",CAST(" + table + "." + StringUtil.toIdentifier(cl.getName())+
" AS VARCHAR("+Constants.LABEL_MAX_LENGTH+"))";
else
- cols += "CAST("+table.toUpperCase() + "." + StringUtil.toIdentifier(cl.getName())+
+ cols += "CAST("+table + "." + StringUtil.toIdentifier(cl.getName())+
" AS VARCHAR("+Constants.LABEL_MAX_LENGTH+"))";
return cols;
}
@@ -194,9 +194,9 @@ protected String decorateLookupColumnForLoad(String cols, PdmColumn cl, String t
*/
protected String decorateOtherColumnForLoad(String cols, PdmColumn cl, String table) {
if (cols != null && cols.length() > 0)
- cols += "," + table.toUpperCase() + "." + StringUtil.toIdentifier(cl.getName());
+ cols += "," + table + "." + StringUtil.toIdentifier(cl.getName());
else
- cols += table.toUpperCase() + "." + StringUtil.toIdentifier(cl.getName());
+ cols += table + "." + StringUtil.toIdentifier(cl.getName());
return cols;
}
View
2  cli-distro/pom.xml
@@ -29,7 +29,7 @@
<parent>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</parent>
<artifactId>gooddata-cli</artifactId>
View
2  cli/pom.xml
@@ -29,7 +29,7 @@
<parent>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</parent>
<artifactId>gooddata-cl-cli</artifactId>
View
19 cli/src/main/java/com/gooddata/processor/GdcDI.java
@@ -281,6 +281,21 @@ private GdcDI(CommandLine ln, Properties defaults) {
l.error("REST API invocation error: "+e.getMessage());
Throwable c = e.getCause();
while(c!=null) {
+ if(c instanceof HttpMethodException) {
+ HttpMethodException ex = (HttpMethodException)c;
+ String msg = ex.getMessage();
+ if(msg != null && msg.length()>0 && msg.indexOf("/ldm/manage")>0) {
+ l.error("Error creating/updating logical data model (executing MAQL DDL).");
+ if(msg.indexOf(".date")>0) {
+ l.error("Bad time dimension schemaReference.");
+ }
+ else {
+ l.error("You are either trying to create a data object that already exists " +
+ "(executing the same MAQL multiple times) or providing a wrong reference " +
+ "or schemaReference in your XML configuration.");
+ }
+ }
+ }
l.error("Caused by: "+c.getMessage());
c = c.getCause();
}
@@ -342,7 +357,7 @@ else if (defaults.getProperty(name) != null) {
}
if(cp.containsKey(CLI_PARAM_VERSION[0])) {
- l.info("GoodData CL version 1.1.2-SNAPSHOT" +
+ l.info("GoodData CL version 1.1.2-BETA" +
((BUILD_NUMBER.length()>0) ? ", build "+BUILD_NUMBER : "."));
System.exit(0);
@@ -638,7 +653,7 @@ private void createProject(Command c, CliParams p, ProcessingContext ctx) {
*/
private void checkProjectCreationStatus(String projectId, CliParams p, ProcessingContext ctx) throws InterruptedException {
l.debug("Checking project "+projectId+" loading status.");
- String status = "";
+ String status = "LOADING";
while(status.equalsIgnoreCase("LOADING")) {
status = ctx.getRestApi(p).getProjectStatus(projectId);
l.debug("Project "+projectId+" loading status = "+status);
View
2  common/pom.xml
@@ -28,7 +28,7 @@
<parent>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</parent>
<artifactId>gooddata-cl-common</artifactId>
View
2  connector/pom.xml
@@ -27,7 +27,7 @@
<parent>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</parent>
<artifactId>gooddata-cl-connector</artifactId>
View
2  gooddata-snaplogic/pom.xml
@@ -29,7 +29,7 @@
<parent>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</parent>
<artifactId>gooddata-cl-snaplogic</artifactId>
View
14 pom.xml
@@ -28,7 +28,7 @@
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
<name>gooddata-cl</name>
<description>GoodData CL command line tool and Java API framework.</description>
@@ -73,32 +73,32 @@
<dependency>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl-cli</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</dependency>
<dependency>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl-backend</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</dependency>
<dependency>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl-connector</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</dependency>
<dependency>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl-snaplogic</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</dependency>
<dependency>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl-common</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</dependency>
<dependency>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl-snaplogic-lib</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</dependency>
<dependency>
<groupId>org.snaplogic</groupId>
View
2  snap-distro/pom.xml
@@ -29,7 +29,7 @@
<parent>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</parent>
<artifactId>gooddata-cl-snap</artifactId>
View
2  snaplogic/pom.xml
@@ -29,7 +29,7 @@
<parent>
<groupId>com.gooddata.cl</groupId>
<artifactId>gooddata-cl</artifactId>
- <version>1.1.2-SNAPSHOT</version>
+ <version>1.1.2-BETA</version>
</parent>
<artifactId>gooddata-cl-snaplogic-lib</artifactId>
Please sign in to comment.
Something went wrong with that request. Please try again.