HELP: Binary-detector hints: base-encoding preference and bitmask TYPE: OBJECT SYNTAX: BIN(BASEPREF=AUTO/BASE16/BASE32/BASE64,BASE=num/ALL/NONE/HEX/BASE32/BASE64)
The BIN sub-object inside DETECT(HINTS(...)) carries binary-detector filters that restrict the type detector at bit-setting time. All hints are optional; omitting them keeps the detector at its default (every plausible base-encoding bit set).
BASEPREF narrows the base-encoding bits to a single preference. This is the typdet selector form -- exactly one base is allowed.
Use BASEPREF when the column is known to be hexadecimal even though its alphabet is also a syntactic subset of BASE64:
detect(hints(bin(basepref=BASE16)))
BASE is the bitmask form: combine several encodings.
detect(hints(bin(base=HEX))) -- HEX only detect(hints(bin(base=BASE32+BASE64))) -- both Base32 and Base64 detect(hints(bin(base=NONE))) -- treat binary zones as raw bytes
BASEPREF and BASE may both be set; BASEPREF biases the picker (single preferred base) while BASE filters which base bits the detector may set in the first place.
NUMBER: BASEPREF=AUTO/BASE16/BASE32/BASE64 - Base-encoding preference for binary detection (single-pick) [AUTO]
AUTO - All base encodings allowed [default]BASE16 - Base16 / hexadecimal onlyBASE32 - Base32 only (RFC 4648)BASE64 - Base64 only (standard + URL-safe)NUMBER: BASE=num/ALL/NONE/HEX/BASE32/BASE64 - Base-encoding hint for binary zones: ALL, NONE, HEX, BASE32, BASE64; bitmask [ALL]
ALL - Probe all base encodings: HEX, BASE32, BASE64 [default]NONE - Skip base-encoding probing (binary fields are raw bytes)HEX - Probe Base16 / hexadecimal encoding onlyBASE32 - Probe Base32 encoding onlyBASE64 - Probe Base64 encoding only