Skip to content
Snippets Groups Projects
Commit 5ef9522e authored by Luc Boudreau's avatar Luc Boudreau
Browse files

[TEST] Second round of presto changes. Adds generic inline table syntax and...

[TEST] Second round of presto changes. Adds generic inline table syntax and ANSI null ordering, plus some cosmetic changes.
parent 41f9fdcc
Branches presto
No related merge requests found
/*
* This software is subject to the terms of the Eclipse Public License v1.0
* Agreement, available at the following URL:
* http://www.eclipse.org/legal/epl-v10.html.
* You must accept the terms of that agreement to use this software.
*
* Copyright (c) 2015-2015 Pentaho Corporation.. All rights reserved.
// This software is subject to the terms of the Eclipse Public License v1.0
// Agreement, available at the following URL:
// http://www.eclipse.org/legal/epl-v10.html.
// You must accept the terms of that agreement to use this software.
//
// Copyright (C) 2015-2015 Pentaho and others
// All Rights Reserved.
*/
package mondrian.spi.impl;
import mondrian.rolap.SqlStatement;
import mondrian.rolap.SqlStatement.Type;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Types;
import mondrian.rolap.SqlStatement;
import mondrian.rolap.SqlStatement.Type;
import java.util.List;
public class PrestoDialect extends JdbcDialectImpl {
......@@ -43,6 +45,31 @@ public class PrestoDialect extends JdbcDialectImpl {
return super.getType(metaData, columnIndex);
}
}
@Override
protected String deduceIdentifierQuoteString(
DatabaseMetaData databaseMetaData)
{
return "\"";
}
public String generateInline(
List<String> columnNames,
List<String> columnTypes,
List<String[]> valueList)
{
return generateInlineGeneric(
columnNames, columnTypes, valueList, null, false);
}
@Override
public String generateOrderByNulls(
String expr,
boolean ascending,
boolean collateNullsLast)
{
return generateOrderByNullsAnsi(expr, ascending, collateNullsLast);
}
}
// End PrestoDialect.java
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment