[
https://issues.apache.org/jira/browse/PHOENIX-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16162256#comment-16162256
]
Ravindra Gore commented on PHOENIX-4193:
----------------------------------------
[~mujtabachohan] This gack is happening with workaround as well.
The workaround which I am applying for TINYINT is basically INTEGER with
min/max value limit:
<column>
<type>INTEGER</type>
<dataSequence>RANDOM</dataSequence>
<minValue>0</minValue>
<maxValue>10</maxValue>
<name>APP_ID</name>
</column>
> Pherf - llegalArgumentException while DataTypeMapping some standard field
> e.g. SMALLINIT, TINYINT, BOOLEAN
> ----------------------------------------------------------------------------------------------------------
>
> Key: PHOENIX-4193
> URL: https://issues.apache.org/jira/browse/PHOENIX-4193
> Project: Phoenix
> Issue Type: Bug
> Reporter: Ravindra Gore
>
> Currently only standard types are supported in Pherf scenarios generation.
> To generate the scenarios for tables with non-supported data types, we try
> mapping them to supported type.
> e.g. INTEGER to TINYINT mapping
> <column>
> <type>INTEGER</type>
> <dataSequence>RANDOM</dataSequence>
> <length>2</length>
> <minValue>0</minValue>
> <maxValue>10</maxValue>
> <name>APP_ID</name>
> </column>
> Though generation of the test data fails with the gack:
> java.lang.IllegalArgumentException: No enum constant
> org.apache.phoenix.pherf.configuration.DataTypeMapping.TINYINT
> java.lang.IllegalArgumentException: No enum constant
> org.apache.phoenix.pherf.configuration.DataTypeMapping.TINYINT
> at java.lang.Enum.valueOf(Enum.java:238)
> at
> org.apache.phoenix.pherf.configuration.DataTypeMapping.valueOf(DataTypeMapping.java:23)
> at
> org.apache.phoenix.pherf.util.PhoenixUtil.getColumnsFromPhoenix(PhoenixUtil.java:248)
> at
> org.apache.phoenix.pherf.workload.WriteWorkload.getBatches(WriteWorkload.java:208)
> at
> org.apache.phoenix.pherf.workload.WriteWorkload.exec(WriteWorkload.java:182)
> at
> org.apache.phoenix.pherf.workload.WriteWorkload.access$100(WriteWorkload.java:56)
> at
> org.apache.phoenix.pherf.workload.WriteWorkload$1.run(WriteWorkload.java:159)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Same issue is observerd for BOOLEAN and SMALLINT.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)