[
https://issues.apache.org/jira/browse/CALCITE-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17536531#comment-17536531
]
Stamatis Zampetakis commented on CALCITE-5151:
----------------------------------------------
Thanks for logging this problem [~cwbcom].
Please include the full stack trace from the {{IllegalArgumentException}} in
the description (inside \{noformat\}) tags. It is helpful to understand exactly
when the problem appears and it also help others searching for similar problems
in the future.
> when create hive jdbc schema,throw new IllegalArgumentException("cannot
> deduce null collation")
> -----------------------------------------------------------------------------------------------
>
> Key: CALCITE-5151
> URL: https://issues.apache.org/jira/browse/CALCITE-5151
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.30.0
> Reporter: cwb
> Priority: Major
>
> code:
> Map<String,Object> props=new HashMap<String,Object>();
> props.put("jdbcUrl", "jdbc:hive2://192.168.137.66:10000/db_test");
> props.put("jdbcDriver", "org.apache.hive.jdbc.HiveDriver");
> props.put("jdbcUser", "");
> props.put("jdbcPassword", "");
> props.put("jdbcSchema", "db_test");
> hiveSchema = JdbcSchema.create(rootSchema, "hiveSchema",props);
> error :
> java.lang.IllegalArgumentException: cannot deduce null collation
> reason:
> the method SqlDialects.getNullCollation(DatabaseMetaData databaseMetaData)
> throws new IllegalArgumentException("cannot deduce null collation");
> and the method HiveDatabaseMetaData.nullsAreSortedAtEnd() throws the
> follwing exeception
> public boolean nullsAreSortedAtEnd() throws SQLException {
> throw new SQLFeatureNotSupportedException("Method not supported");
> }
--
This message was sent by Atlassian Jira
(v8.20.7#820007)