You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converter.get() raised ValueError for column type identifiers it does not know. Unknown identifiers now fall back to the default converter, so queries on columns using newer CrateDB types no longer fail. (Fix ValueError on unlisted CrateDB column type identifiers #830)
Behavior changes
connect() now raises ConnectionError immediately if no configured server node responds, instead of deferring the error until the first statement is executed. Code that creates a connection eagerly, before the cluster is reachable, needs to handle the error at connect() time. (Fix: Fail early when database cluster does not respond #711)
DefaultTypeConverter now decodes DataType.BIT columns, converting CrateDB's B'0110' wire format to a plain string of 0/1 digits. Code that stripped the wrapper itself needs to be adjusted, or can restore the previous behaviour by mapping DataType.BIT to a converter of its own. (Fix Register converter for DataType.BIT #828)
DefaultTypeConverter now decodes DataType.UUID columns to Python uuid.UUID objects instead of returning the raw string. Code that expected a string can call str() on the value, or map DataType.UUID to a converter of its own.
Both converter changes only affect code that opts into DefaultTypeConverter; the default Converter is unchanged.
Changes
Added
DataType:INTERVAL(17),ROW(18),FLOAT_VECTOR(28),UUID(29), andREGTYPE(30). (Fix ValueError on unlisted CrateDB column type identifiers #830)Fixed
Converter.get()raisedValueErrorfor column type identifiers it does not know. Unknown identifiers now fall back to the default converter, so queries on columns using newer CrateDB types no longer fail. (Fix ValueError on unlisted CrateDB column type identifiers #830)Behavior changes
connect()now raisesConnectionErrorimmediately if no configured server node responds, instead of deferring the error until the first statement is executed. Code that creates a connection eagerly, before the cluster is reachable, needs to handle the error atconnect()time. (Fix: Fail early when database cluster does not respond #711)DefaultTypeConverternow decodesDataType.BITcolumns, converting CrateDB'sB'0110'wire format to a plain string of0/1digits. Code that stripped the wrapper itself needs to be adjusted, or can restore the previous behaviour by mappingDataType.BITto a converter of its own. (Fix Register converter for DataType.BIT #828)DefaultTypeConverternow decodesDataType.UUIDcolumns to Pythonuuid.UUIDobjects instead of returning the raw string. Code that expected a string can callstr()on the value, or mapDataType.UUIDto a converter of its own.Both converter changes only affect code that opts into
DefaultTypeConverter; the defaultConverteris unchanged.