Looks like we need to enhance the JDBC to handle new types for V3.0
1. Here is the ddl to create the table. Open a Cassandra QA window and execute the following:
135 KB
These new types need to be added to TypesMap.class.
For Short and Bytes data types, We have successfully implemented handler by overrding AbstractJdbcType<Short> and AbstractJdbcType<Byte>.
We are not getting, how to implement same thing for Date & Time type. On cassandra forum, they had latest implementation by overriding AbstractType<Integer> and AbstractType<Long>. I did same implementation but on ADS UI its showing value in Number. I also tried by overring AbstractType<Date> but its showing incorrect date after UI.
Please guide which will be correct implementation for handling Date and Time data type.
For Short and Bytes data types, We have successfully implemented handler by overrding AbstractJdbcType<Short> and AbstractJdbcType<Byte>.
We are not getting, how to implement same thing for Date & Time type. On cassandra forum, they had latest implementation by overriding AbstractType<Integer> and AbstractType<Long>. I did same implementation but on ADS UI its showing value in Number. I also tried by overring AbstractType<Date> but its showing incorrect date after UI.
Please guide which will be correct implementation for handling Date and Time data type.
This issue is verified on Build no.: ads-windows-x64-18.5.0-dev-8.
This issue is verified on Build no.: ads-windows-x64-18.5.0-dev-8.
Hi Sagar,
Would you also add the tinyint keyword into the datatypes section of SQLCassandraSyntax.java file? This keyword is not showing up with a blue color in the Query Analyzer window.
Also, if possible, since the changes were made in several svn check in's, would you please add the svn numbers for those check in's to this issue for reference.
Thanks in advance, Tom
Hi Sagar,
Would you also add the tinyint keyword into the datatypes section of SQLCassandraSyntax.java file? This keyword is not showing up with a blue color in the Query Analyzer window.
Also, if possible, since the changes were made in several svn check in's, would you please add the svn numbers for those check in's to this issue for reference.
Thanks in advance, Tom
This issue is verified on Build no.: ads-windows-x64-18.5.0-dev-12.
This issue is verified on Build no.: ads-windows-x64-18.5.0-dev-12.
Tom,
We have fixed review comments. Revision ID : #55612.
This changes will get available in next build.
Tom,
We have fixed review comments. Revision ID : #55612.
This changes will get available in next build.
Hi Pankaj,
I am still getting these errors in the log when executing Schema Script Generator or simply doing a query in the Query Analyzer window with the new types. Please have a look. I think your jdbc mapping is incorrect in CassColumnType.java, The data type mapping should be different from the jdbc mapping.
Thanks, Tom
11/16 09:21:02.985 CassColumnType.getSQLTypeByJDBCType SQL data type is not found for JDBC type=[ShortType]
Hi Pankaj,
I am still getting these errors in the log when executing Schema Script Generator or simply doing a query in the Query Analyzer window with the new types. Please have a look. I think your jdbc mapping is incorrect in CassColumnType.java, The data type mapping should be different from the jdbc mapping.
Thanks, Tom
11/16 09:21:02.985 CassColumnType.getSQLTypeByJDBCType SQL data type is not found for JDBC type=[ShortType]
Hi Tom,
Fixed reviewed comment on revision :55615
Hi Tom,
Fixed reviewed comment on revision :55615
svn #55620 - Cleaned up typing. New types should only be allowed in v3.0 and greater in the Create Table visual editor.
svn #55620 - Cleaned up typing. New types should only be allowed in v3.0 and greater in the Create Table visual editor.
Issue #15387 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build 18.5 |
Time Estimate 20 hours 30 minutes |
1 issue link |
relates to #15487
Issue #15487Cassandra - Add new 3.0 types to the ERM |
These new types need to be added to TypesMap.class.