fix compile select when column is null
change typeTimestamp data type and remove default value