mirror of https://github.com/apache/cassandra
Return DateType as long in pig.
This commit is contained in:
parent
f4430ff4e7
commit
2b7672fa11
|
|
@ -218,7 +218,7 @@ public class CassandraStorage extends LoadFunc implements StoreFuncInterface, Lo
|
|||
else if (value instanceof UUID)
|
||||
pair.set(position, new DataByteArray(UUIDGen.decompose((java.util.UUID) value)));
|
||||
else if (value instanceof Date)
|
||||
pair.set(position, new DataByteArray(ByteBufferUtil.getArray(DateType.instance.decompose((Date) value))));
|
||||
pair.set(position, DateType.instance.decompose((Date) value).getLong());
|
||||
else
|
||||
pair.set(position, value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue