EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB453887: String data truncation for Hive columns in MicroStrategy


Community Admin

• Strategy


This article describes a workaround for the error that occurs when the amount of data in the Hive STRING column exceeds the max value set in the DSN via the 'Default String Column Length' setting.

Background

The Strategy Hive ODBC Driver has a setting called 'Default String Column Length' that allows users to set the max size that a STRING data type is reported to the Strategy Intelligence Server.  This setting is important as it instructs the Strategy Intelligence Server of the buffer size to allocate while fetching string columns from Hive. Since STRING columns can hold up to 2GB of data this has some implications:

  • If the 'Default String Column Length'  is set too large it can lead to performance issues as the Strategy Intelligence Server will need to allocate additional resources.  
  • If the 'Default String Column Length' is set too low it will lead to data truncation

Product defaults

Strategy sets the following defaults:

  • For Data Import DSN-less connections this value is set to 4000.  The value is configurable by editing the connection string (see Workaround section below).
  • For DSN connections on Linux this value is set to a default value of 4000 and can be edited in the odbc.ini by changing the DefaultStringColumnLength setting (see Workaround section below).
  • For DSN connections on Windows this value defaults to 255.  This can be edited in the DSN via the ODBC Administrator (see Workaround section below).

Example of truncation message in Data Import using DSN-less connection:

Below is an example when the amount of data in the Hive STRING column exceeds the max value set in the DSN via the 'Default String Column Length' setting.
 

Workaround

Data Import:  
To work around the truncation error in Data Import DSN-less follow the steps below:

  1. Navigate to your DSN-less connection to hive on Strategy Web and edit it
  2. Edit the value of Default String Column Length to a value based on your string column size. 
ka04W00000148J1QAI_0EM44000000Q4Xr.png

DSN Connections

To work around the truncation error with DSN connections follow the steps below:

ka04W00000148J1QAI_0EM44000000Q4Y1.png

Workaround

  • Navigate to the ODBC Administrator and edit your Hive DSN using Strategy Hive ODBC Driver
  • Click on the Advance settings and modify the value for the Default String Column length property from 255 to suitable value based on the size of your string data.
ka04W00000148J1QAI_0EM44000000Q4Ya.png

  

ka04W00000148J1QAI_0EM44000000Q4Yk.png

Comment

0 comments

Details

Knowledge Article

Published:

July 21, 2017

Last Updated:

July 21, 2017